Example usage for android.preference PreferenceScreen saveHierarchyState

List of usage examples for android.preference PreferenceScreen saveHierarchyState

Introduction

In this page you can find the example usage for android.preference PreferenceScreen saveHierarchyState.

Prototype

public void saveHierarchyState(Bundle container) 

Source Link

Document

Store this Preference hierarchy's frozen state into the given container.

Usage

From source file:com.balch.android.app.framework.preference.PreferenceFragment.java

public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    PreferenceScreen preferenceScreen = getPreferenceScreen();
    if (preferenceScreen != null) {
        Bundle container = new Bundle();
        preferenceScreen.saveHierarchyState(container);
        outState.putBundle(PREFERENCES_TAG, container);
    }//from  www.j a v  a 2  s .c  o  m
}

From source file:apps.veery.com.util.PreferenceFragment.java

@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);
    }/*ww w .ja v a  2s .c o m*/
}

From source file:com.limelight.testvideosdk.PreferenceFragment.java

@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);
    }//  w  w w  . j  a v a2s .  c  o  m
}