summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup
diff options
context:
space:
mode:
authoremancebo <emancebo@cyngn.com>2015-05-22 16:59:25 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-06-18 16:57:57 +0000
commitffc0dbd2fbba0b4fe5c9c19f481ba815c31c6d4f (patch)
tree8860a69f922f90f31cd835d503c4800cfb4dbd81 /src/com/cyanogenmod/setupwizard/setup
parentc5e926d67f04fa4f8cf769ca37065f2c7cf6787c (diff)
downloadpackages_apps_SetupWizard-ffc0dbd2fbba0b4fe5c9c19f481ba815c31c6d4f.zip
packages_apps_SetupWizard-ffc0dbd2fbba0b4fe5c9c19f481ba815c31c6d4f.tar.gz
packages_apps_SetupWizard-ffc0dbd2fbba0b4fe5c9c19f481ba815c31c6d4f.tar.bz2
SetupWizard: add overlay to uncheck cyanogen theme option by default
Change-Id: I278dcb3b2d8099b71a66d90250c40836dd8ec7fc (cherry picked from commit 7a255f6e5c34b7abe49333eb8f623904a8576a67)
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
index d751461..dbfd439 100644
--- a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
@@ -413,9 +413,13 @@ public class CyanogenSettingsPage extends SetupPage {
private void updateThemeOption() {
if (!mHideThemeRow) {
final Bundle myPageBundle = mPage.getData();
- boolean themesChecked =
- !myPageBundle.containsKey(KEY_APPLY_DEFAULT_THEME) || myPageBundle
- .getBoolean(KEY_APPLY_DEFAULT_THEME);
+ boolean themesChecked;
+ if (myPageBundle.containsKey(KEY_APPLY_DEFAULT_THEME)) {
+ themesChecked = myPageBundle.getBoolean(KEY_APPLY_DEFAULT_THEME);
+ } else {
+ themesChecked = getActivity().getResources().getBoolean(
+ R.bool.check_custom_theme_by_default);
+ }
mDefaultTheme.setChecked(themesChecked);
myPageBundle.putBoolean(KEY_APPLY_DEFAULT_THEME, themesChecked);
}