@Override public void onStop() { super.onStop(); prefs.unregisterOnSharedPreferenceChangeListener(this); }
@Override @CallSuper public void onStop() { lifecycleSubject.onNext(FragmentEvent.STOP); super.onStop(); }
@Override public void onStop() { if (mSyncthingService != null) { mNotificationHandler.updatePersistentNotification(mSyncthingService); if (mPendingConfig) { if (mApi != null && mSyncthingService.getCurrentState() != SyncthingService.State.DISABLED) { mApi.saveConfigAndRestart(); mPendingConfig = false; } } if (mPendingRunConditions) { mSyncthingService.evaluateRunConditions(); } } super.onStop(); }
@Override public void onStop() { super.onStop(); // unregister the listener preferences.unregisterOnSharedPreferenceChangeListener(prefChangeListener); }
@Override public void onStop() { super.onStop(); if (permissionsPollThread != null && !permissionsPollThread.isInterrupted()) { permissionsPollThread.interrupt(); permissionsPollThread = null; } } }
@Override public void onStop() { super.onStop(); this.presenter.onPreferencesStopped(); }
@Override public void onStop() { mSettingPresenter.onStop(); super.onStop(); }
@Override public void onStop() { super.onStop(); getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); } }
@Override public void onStop() { Log.d(TAG, "onStop() started"); settings.getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this); if(configurationTestHelper != null) { configurationTestHelper.cancel(); configurationTestHelper = null; } applyChanges(); super.onStop(); }
@Override public void onStop() { super.onStop(); getActivity().unregisterReceiver(serviceReceiver); }
@Override public void onStop() { mTextScalePref.stopObservingFontPrefs(); mFontSizePrefs.removeObserver(mFontSizePrefsObserver); super.onStop(); }
@Override public void onStop() { super.onStop(); mProfileSyncService.removeSyncStateChangedListener(this); // If this activity is closing, apply configuration changes and tell sync that // the user is done configuring sync. if (!getActivity().isChangingConfigurations()) { // Only save state if the switch and external state match. If a stop and clear comes // while the dialog is open, this will be false and settings won't be saved. if (mSyncSwitchPreference.isChecked() && AndroidSyncSettings.isSyncEnabled(getActivity())) { // Save the new data type state. configureSyncDataTypes(); // Inform sync that the user has finished setting up sync at least once. mProfileSyncService.setFirstSetupComplete(); } PersonalDataManager.setPaymentsIntegrationEnabled(mPaymentsIntegration.isChecked()); // Setup is done. This was preventing sync from turning on even if it was enabled. // TODO(crbug/557784): This needs to be set only when we think the user is done with // setting up. This means: 1) If the user leaves the Sync Settings screen (via back) // or, 2) If the user leaves the screen by tapping on "Manage Synced Data" mProfileSyncService.setSetupInProgress(false); } }