Tabnine Logo
PreferenceFragment.onStop
Code IndexAdd Tabnine to your IDE (free)

How to use
onStop
method
in
android.preference.PreferenceFragment

Best Java code snippets using android.preference.PreferenceFragment.onStop (Showing top 12 results out of 315)

origin: commonsguy/cw-omnibus

@Override
public void onStop() {
 super.onStop();
 prefs.unregisterOnSharedPreferenceChangeListener(this);
}
origin: trello/RxLifecycle

@Override
@CallSuper
public void onStop() {
  lifecycleSubject.onNext(FragmentEvent.STOP);
  super.onStop();
}
origin: syncthing/syncthing-android

@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();
}
origin: indywidualny/FaceSlim

@Override
public void onStop() {
  super.onStop();
  // unregister the listener
  preferences.unregisterOnSharedPreferenceChangeListener(prefChangeListener);
}
origin: franciscofranco/Demo-Mode-tile

  @Override
  public void onStop() {
    super.onStop();
    if (permissionsPollThread != null && !permissionsPollThread.isInterrupted()) {
      permissionsPollThread.interrupt();
      permissionsPollThread = null;
    }
  }
}
origin: sylvek/itracing2

@Override
public void onStop()
{
  super.onStop();
  this.presenter.onPreferencesStopped();
}
origin: towavephone/MemoryCleaner

@Override public void onStop() {
  mSettingPresenter.onStop();
  super.onStop();
}
origin: jonasbleyl/recurrence

  @Override
  public void onStop() {
    super.onStop();
    getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
  }
}
origin: wallabag/android-app

@Override
public void onStop() {
  Log.d(TAG, "onStop() started");
  settings.getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);
  if(configurationTestHelper != null) {
    configurationTestHelper.cancel();
    configurationTestHelper = null;
  }
  applyChanges();
  super.onStop();
}
origin: by-syk/NetUpDown

@Override
public void onStop() {
  super.onStop();
  getActivity().unregisterReceiver(serviceReceiver);
}
origin: derry/delion

@Override
public void onStop() {
  mTextScalePref.stopObservingFontPrefs();
  mFontSizePrefs.removeObserver(mFontSizePrefsObserver);
  super.onStop();
}
origin: derry/delion

@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);
  }
}
android.preferencePreferenceFragmentonStop

Popular methods of PreferenceFragment

  • onCreate
  • onResume
  • onPause
  • onDestroy
  • onOptionsItemSelected
  • onActivityCreated
  • onStart
  • onAttach
  • onPreferenceTreeClick
  • onCreateView
  • onActivityResult
  • onViewCreated
  • onActivityResult,
  • onViewCreated,
  • onDestroyView,
  • onDetach,
  • getActivity,
  • onSaveInstanceState,
  • addPreferencesFromResource,
  • getPreferenceScreen,
  • onCreateOptionsMenu

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now