diff options
author | DvTonder <david.vantonder@gmail.com> | 2012-11-28 21:26:34 -0500 |
---|---|---|
committer | DvTonder <david.vantonder@gmail.com> | 2012-11-28 21:26:34 -0500 |
commit | aaefadfdab0549d04ff9fbe7fc050e628f1b3f62 (patch) | |
tree | 0c5eaee668bb1bb4a3394c43f8dd1777cedc4380 /src | |
parent | c06e11e730f481cb6516d1d5da2457f0a7f633a7 (diff) | |
download | packages_apps_settings-aaefadfdab0549d04ff9fbe7fc050e628f1b3f62.zip packages_apps_settings-aaefadfdab0549d04ff9fbe7fc050e628f1b3f62.tar.gz packages_apps_settings-aaefadfdab0549d04ff9fbe7fc050e628f1b3f62.tar.bz2 |
Settings: Default the old CM Power widget to OFF
THe Power widget functionality will be replaced by the new QuickSettings
functionality of Android 4.2. Turn the old CM widget off by default.
Change-Id: I9144130898aff1fb9f882aaf68a3b0873742f3d6
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/cyanogenmod/PowerWidget.java | 2 | ||||
-rw-r--r-- | src/com/android/settings/cyanogenmod/PowerWidgetEnabler.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/settings/cyanogenmod/PowerWidget.java b/src/com/android/settings/cyanogenmod/PowerWidget.java index b4f0e77..134755e 100644 --- a/src/com/android/settings/cyanogenmod/PowerWidget.java +++ b/src/com/android/settings/cyanogenmod/PowerWidget.java @@ -89,7 +89,7 @@ public class PowerWidget extends SettingsPreferenceFragment implements mPowerWidget.setChecked((Settings.System.getInt(getActivity().getApplicationContext() .getContentResolver(), - Settings.System.EXPANDED_VIEW_WIDGET, 1) == 1)); + Settings.System.EXPANDED_VIEW_WIDGET, 0) == 1)); mPowerWidgetHideOnChange.setChecked((Settings.System.getInt(getActivity() .getApplicationContext().getContentResolver(), Settings.System.EXPANDED_HIDE_ONCHANGE, 0) == 1)); diff --git a/src/com/android/settings/cyanogenmod/PowerWidgetEnabler.java b/src/com/android/settings/cyanogenmod/PowerWidgetEnabler.java index 22a9aad..c2b7ed4 100644 --- a/src/com/android/settings/cyanogenmod/PowerWidgetEnabler.java +++ b/src/com/android/settings/cyanogenmod/PowerWidgetEnabler.java @@ -38,9 +38,9 @@ public class PowerWidgetEnabler extends SwitchWidget { } public void setState(Switch switch_) { - int isEnabled = Settings.System.getInt(mContext.getContentResolver(), - Settings.System.EXPANDED_VIEW_WIDGET, 1); - mSwitch.setChecked(isEnabled == 1 ? true : false); + boolean isEnabled = Settings.System.getInt(mContext.getContentResolver(), + Settings.System.EXPANDED_VIEW_WIDGET, 0) == 1; + mSwitch.setChecked(isEnabled); return; } |