Example #1
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mPrefsRequestId > 0) {
     PrefsHelper.removeObserver(mPrefsRequestId);
   }
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   getPreferenceScreen()
       .getSharedPreferences()
       .unregisterOnSharedPreferenceChangeListener(mSharePrefListener);
 }
  @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));
 }
 @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;
 }
Example #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();
    }
Example #8
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   getPreferenceScreen().getSharedPreferences().edit().clear().apply();
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   PrefUtils.unregisterOnSharedPreferenceChangeListener(getActivity(), this);
 }
Example #11
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
   if (calcTask != null) calcTask.cancel(true);
 }
Example #12
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   PreferenceManager.getDefaultSharedPreferences(activity)
       .unregisterOnSharedPreferenceChangeListener(this);
 }
 @Override
 public void onDestroy() {
   dismissDialog();
   super.onDestroy();
 }