diff options
author | cretin45 <cretin45@gmail.com> | 2015-03-20 15:00:21 -0700 |
---|---|---|
committer | Ed Carrigan <cretin45@gmail.com> | 2015-04-01 02:03:03 +0000 |
commit | 76101714d71c40dcc453dde537272a58bd0c44c0 (patch) | |
tree | d4c5392bdaa25f2a63664e09558104d74f3d8410 /src/com/cyanogenmod/setupwizard/setup | |
parent | 2a01a24066e652b85cd4c6ddefcb93178fcef9fe (diff) | |
download | packages_apps_SetupWizard-76101714d71c40dcc453dde537272a58bd0c44c0.zip packages_apps_SetupWizard-76101714d71c40dcc453dde537272a58bd0c44c0.tar.gz packages_apps_SetupWizard-76101714d71c40dcc453dde537272a58bd0c44c0.tar.bz2 |
SetupWizard: Initialize the nav keys bundle boolean
Change-Id: I50f2ef0fb7226c8b58437b669ca71df436d68ee8
(cherry picked from commit 33683fc2ce0d506c5c69726a112e768684676343)
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java index f92e753..7c75d10 100644 --- a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java @@ -203,7 +203,7 @@ public class CyanogenSettingsPage extends SetupPage { SetupWizardUtils.isSimMissing(context)); } - protected static boolean hideThemeSwitch(Context context) { + private static boolean hideThemeSwitch(Context context) { return ThemeUtils.getDefaultThemePackageName(context).equals(ThemeConfig.SYSTEM_DEFAULT); } @@ -395,12 +395,14 @@ public class CyanogenSettingsPage extends SetupPage { private void updateDisableNavkeysOption() { if (!mHideNavKeysRow) { + final Bundle myPageBundle = mPage.getData(); boolean enabled = Settings.Secure.getInt(getActivity().getContentResolver(), Settings.Secure.DEV_FORCE_SHOW_NAVBAR, 0) != 0; - boolean checked = mPage.getData().containsKey(KEY_ENABLE_NAV_KEYS) ? - mPage.getData().getBoolean(KEY_ENABLE_NAV_KEYS) : + boolean checked = myPageBundle.containsKey(KEY_ENABLE_NAV_KEYS) ? + myPageBundle.getBoolean(KEY_ENABLE_NAV_KEYS) : enabled; mNavKeys.setChecked(checked); + myPageBundle.putBoolean(KEY_ENABLE_NAV_KEYS, checked); } } |