Unbreak manual brightness setting.

Change-Id: I0ba5b82f60eacd66db0dcf4166e9a919ee06f2e0
This commit is contained in:
Michael Wright
2014-02-18 22:50:50 -08:00
parent d2c3adc9c9
commit 5c977ea1b7

View File

@@ -503,7 +503,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
boolean slow;
int screenAutoBrightness = mAutomaticBrightnessController != null ?
mAutomaticBrightnessController.getAutomaticScreenBrightness() : -1;
if (screenAutoBrightness >= 0) {
if (screenAutoBrightness >= 0 && mPowerRequest.useAutoBrightness) {
// Use current auto-brightness value.
target = screenAutoBrightness;
slow = mUsingScreenAutoBrightness;