summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java')
-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);
}