am 0ffce152: am 772f5600: Need to save the brigness setting.
* commit '0ffce152096aca858dc6b440f90c7c607fd3fbae':
Need to save the brigness setting.
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BrightnessController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BrightnessController.java
index c11d04e..ca1d98f 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BrightnessController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BrightnessController.java
@@ -79,7 +79,12 @@
setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC
: Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
if (!automatic) {
- setBrightness(value + MINIMUM_BACKLIGHT);
+ value = value + value + MINIMUM_BACKLIGHT;
+ setBrightness(value);
+ if (!tracking) {
+ Settings.System.putInt(mContext.getContentResolver(),
+ Settings.System.SCREEN_BRIGHTNESS, value);
+ }
}
}