Merge "Unbreak manual brightness setting."
This commit is contained in:
committed by
Android (Google) Code Review
commit
d429710f8e
@@ -510,7 +510,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