am 772f5600: Need to save the brigness setting.

* commit '772f5600ef720945b98054246982fd3b711830a9':
  Need to save the brigness setting.
This commit is contained in:
Joe Onorato
2011-01-16 11:14:54 -08:00
committed by Android Git Automerger

View File

@@ -79,7 +79,12 @@ public class BrightnessController implements ToggleSlider.Listener {
setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC
: Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL); : Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
if (!automatic) { 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);
}
} }
} }