Пример #1
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mPrefsRequestId > 0) {
     PrefsHelper.removeObserver(mPrefsRequestId);
   }
 }
Пример #2
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   getPreferenceScreen()
       .getSharedPreferences()
       .unregisterOnSharedPreferenceChangeListener(mSharePrefListener);
 }
Пример #3
0
  @Override
  public void onDestroy() {
    super.onDestroy();

    // we want to tell other activities that we need to reload
    amdroid.confChanged = true;
  }
  @Override
  public void onDestroy() {
    super.onDestroy();

    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
    preferences.unregisterOnSharedPreferenceChangeListener(this);
  }
 @Override
 public void onDestroy() {
   super.onDestroy();
   mSettings.release();
   getActivity()
       .startService(
           new Intent(getActivity(), SyncthingInstance.class)
               .setAction(SyncthingInstance.REEVALUATE));
 }
Пример #6
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mClearBrowsingDataDialogFragment != null) {
     // In case the progress dialog is still showing and waiting for a callback, dismiss it.
     // See bug http://b/13396757.
     mClearBrowsingDataDialogFragment.dismissProgressDialog();
   }
   mClearBrowsingDataDialogFragment = null;
 }
Пример #7
0
    @Override
    public void onDestroy() {
      PreferenceGroup prefGroup = getPreferenceScreen();
      for (int i = 0; i < prefGroup.getPreferenceCount(); i++) {
        Preference pref = prefGroup.getPreference(i);
        if (pref instanceof CheckBoxPreference) {
          CheckBoxPreference checkBoxPref = (CheckBoxPreference) pref;
          SettingsManager.setPreferenceBoolean(checkBoxPref.getKey(), checkBoxPref.isChecked());
        }
      }

      super.onDestroy();
    }
Пример #8
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   getPreferenceScreen().getSharedPreferences().edit().clear().apply();
 }
Пример #9
0
 @Override
 public void onDestroy() {
   super.onDestroy();
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   PrefUtils.unregisterOnSharedPreferenceChangeListener(getActivity(), this);
 }
Пример #11
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
   if (calcTask != null) calcTask.cancel(true);
 }
Пример #12
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   PreferenceManager.getDefaultSharedPreferences(activity)
       .unregisterOnSharedPreferenceChangeListener(this);
 }
Пример #13
0
 @Override
 public void onDestroy() {
   dismissDialog();
   super.onDestroy();
 }