Unbreak manual brightness setting.
Change-Id: I0ba5b82f60eacd66db0dcf4166e9a919ee06f2e0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user