summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
diff options
context:
space:
mode:
authorTanguy Pruvot <tanguy.pruvot@gmail.com>2012-03-19 04:26:16 +0100
committerTanguy Pruvot <tanguy.pruvot@gmail.com>2012-03-20 03:19:58 +0100
commit95d65cf7839f159cc529c58b11d98a74ca91a9bc (patch)
tree8cca2cc0224ab7d0da8af2bcde1a43936cef44f8 /packages/SystemUI/src/com
parentb2afe03a5aca08d6f32145b582225e60e0a406a7 (diff)
downloadframeworks_base-95d65cf7839f159cc529c58b11d98a74ca91a9bc.zip
frameworks_base-95d65cf7839f159cc529c58b11d98a74ca91a9bc.tar.gz
frameworks_base-95d65cf7839f159cc529c58b11d98a74ca91a9bc.tar.bz2
Fix status bar brightness control key
renamed everywhere, on request... require http://review.cyanogenmod.com/13776 Change-Id: I87eff5c453a4150c4f21e1facac2244e68829ce3
Diffstat (limited to 'packages/SystemUI/src/com')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index e72a741..da47219 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -252,7 +252,7 @@ public class PhoneStatusBar extends StatusBar {
void observe() {
ContentResolver resolver = mContext.getContentResolver();
resolver.registerContentObserver(Settings.System.getUriFor(
- Settings.System.STATUS_BAR_BRIGHTNESS_TOGGLE), false, this);
+ Settings.System.STATUS_BAR_BRIGHTNESS_CONTROL), false, this);
resolver.registerContentObserver(Settings.System.getUriFor(
Settings.System.SCREEN_BRIGHTNESS_MODE), false, this);
update();
@@ -266,7 +266,7 @@ public class PhoneStatusBar extends StatusBar {
public void update() {
ContentResolver resolver = mContext.getContentResolver();
mBrightnessControl = Settings.System.getInt(resolver,
- Settings.System.STATUS_BAR_BRIGHTNESS_TOGGLE, 0) != 0;
+ Settings.System.STATUS_BAR_BRIGHTNESS_CONTROL, 0) != 0;
mAutoBrightness = Settings.System.getInt(resolver,
Settings.System.SCREEN_BRIGHTNESS_MODE, 0) ==
Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC;