code: public boolean commit() {
          if (editing == null) {
              return false;
          }
          final boolean result = editing.commit();
          editing = null;
          return result;
      }
docs: Call to commit changes.
  @see android.content.SharedPreferences.Editor#commit()