Java Code Examples for android.preference.PreferenceScreen#saveHierarchyState()
The following examples show how to use
android.preference.PreferenceScreen#saveHierarchyState() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PreferenceCompatFragment.java From Audinaut with GNU General Public License v3.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle bundle) { super.onSaveInstanceState(bundle); PreferenceScreen screen = getPreferenceScreen(); if (screen != null) { Bundle localBundle = new Bundle(); screen.saveHierarchyState(localBundle); bundle.putBundle(PREFERENCES_TAG, localBundle); } }
Example 2
Source File: PreferenceFragment.java From droidddle with Apache License 2.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); final PreferenceScreen preferenceScreen = getPreferenceScreen(); if (preferenceScreen != null) { Bundle container = new Bundle(); preferenceScreen.saveHierarchyState(container); outState.putBundle(PREFERENCES_TAG, container); } }
Example 3
Source File: PreferenceFragment.java From datmusic-android with Apache License 2.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); final PreferenceScreen preferenceScreen = getPreferenceScreen(); if (preferenceScreen != null) { Bundle container = new Bundle(); preferenceScreen.saveHierarchyState(container); outState.putBundle(PREFERENCES_TAG, container); } }
Example 4
Source File: PreferenceCompatFragment.java From Popeens-DSub with GNU General Public License v3.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle bundle) { super.onSaveInstanceState(bundle); PreferenceScreen screen = getPreferenceScreen(); if (screen != null) { Bundle localBundle = new Bundle(); screen.saveHierarchyState(localBundle); bundle.putBundle(PREFERENCES_TAG, localBundle); } }
Example 5
Source File: PreferenceFragmentBase.java From AcDisplay with GNU General Public License v2.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); final PreferenceScreen preferenceScreen = getPreferenceScreen(); if (preferenceScreen != null) { Bundle container = new Bundle(); preferenceScreen.saveHierarchyState(container); outState.putBundle(PREFERENCES_TAG, container); } }
Example 6
Source File: PreferenceFragmentCompat.java From MaxLock with GNU General Public License v3.0 | 5 votes |
@Override public void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); final PreferenceScreen preferenceScreen = getPreferenceScreen(); if (preferenceScreen != null) { final Bundle container = new Bundle(); preferenceScreen.saveHierarchyState(container); outState.putBundle(PreferenceManager.METADATA_KEY_PREFERENCES, container); } }
Example 7
Source File: PreferenceFragmentBase.java From HeadsUp with GNU General Public License v2.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); final PreferenceScreen preferenceScreen = getPreferenceScreen(); if (preferenceScreen != null) { Bundle container = new Bundle(); preferenceScreen.saveHierarchyState(container); outState.putBundle(PREFERENCES_TAG, container); } }
Example 8
Source File: PreferenceFragment.java From android-support-v4-preferencefragment with Apache License 2.0 | 5 votes |
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); final PreferenceScreen preferenceScreen = getPreferenceScreen(); if (preferenceScreen != null) { Bundle container = new Bundle(); preferenceScreen.saveHierarchyState(container); outState.putBundle(PREFERENCES_TAG, container); } }