// Constants for state save/restore
private static final String SAVE_KEY_HEADERS = ":settings:headers";
- private static final String SAVE_KEY_CURRENT_HEADER = ":settings:cur_header";
private static final String SAVE_KEY_SEARCH_MENU_EXPANDED = ":settings:search_menu_expanded";
private static final String SAVE_KEY_SEARCH_QUERY = ":settings:search_query";
*/
public static final String EXTRA_SHOW_FRAGMENT_TITLE = ":settings:show_fragment_title";
- private static final String META_DATA_KEY_HEADER_ID =
- "com.android.settings.TOP_LEVEL_HEADER_ID";
-
private static final String META_DATA_KEY_FRAGMENT_CLASS =
"com.android.settings.FRAGMENT_CLASS";
private String mFragmentClass;
private Header mSelectedHeader;
- private Header mCurrentHeader;
private CharSequence mInitialTitle;
if (mHeaders.size() > 0) {
outState.putParcelableArrayList(SAVE_KEY_HEADERS, mHeaders);
- if (mCurrentHeader != null) {
- int index = mHeaders.indexOf(mCurrentHeader);
- if (index >= 0) {
- outState.putInt(SAVE_KEY_CURRENT_HEADER, index);
- }
- }
}
// The option menus are created if the ActionBar is visible and they are also created