SetupWizard: add overlay to uncheck cyanogen theme option by default
Change-Id: I278dcb3b2d8099b71a66d90250c40836dd8ec7fc (cherry picked from commit 7a255f6e5c34b7abe49333eb8f623904a8576a67)
This commit is contained in:
parent
c5e926d67f
commit
ffc0dbd2fb
|
@ -20,4 +20,5 @@
|
||||||
<!-- The type of sim image to display.
|
<!-- The type of sim image to display.
|
||||||
0=default sim image, 1=sim on side, 2=sim on back-->
|
0=default sim image, 1=sim on side, 2=sim on back-->
|
||||||
<integer name="sim_image_type">0</integer>
|
<integer name="sim_image_type">0</integer>
|
||||||
|
<bool name="check_custom_theme_by_default">true</bool>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,9 +413,13 @@ public class CyanogenSettingsPage extends SetupPage {
|
||||||
private void updateThemeOption() {
|
private void updateThemeOption() {
|
||||||
if (!mHideThemeRow) {
|
if (!mHideThemeRow) {
|
||||||
final Bundle myPageBundle = mPage.getData();
|
final Bundle myPageBundle = mPage.getData();
|
||||||
boolean themesChecked =
|
boolean themesChecked;
|
||||||
!myPageBundle.containsKey(KEY_APPLY_DEFAULT_THEME) || myPageBundle
|
if (myPageBundle.containsKey(KEY_APPLY_DEFAULT_THEME)) {
|
||||||
.getBoolean(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);
|
mDefaultTheme.setChecked(themesChecked);
|
||||||
myPageBundle.putBoolean(KEY_APPLY_DEFAULT_THEME, themesChecked);
|
myPageBundle.putBoolean(KEY_APPLY_DEFAULT_THEME, themesChecked);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue