Merge "Don't update brightness settings when throttling brightness" into tm-dev am: c37d317e0c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17976323 Change-Id: Icdd9667c4f074ce130c280d9ca6b4c9d50557880 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1389,12 +1389,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
|||||||
// Brightness throttling is needed, so do so quickly.
|
// Brightness throttling is needed, so do so quickly.
|
||||||
// Later, when throttling is removed, we let other mechanisms decide on speed.
|
// Later, when throttling is removed, we let other mechanisms decide on speed.
|
||||||
slowChange = false;
|
slowChange = false;
|
||||||
updateScreenBrightnessSetting = true;
|
|
||||||
}
|
}
|
||||||
mAppliedThrottling = true;
|
mAppliedThrottling = true;
|
||||||
} else if (mAppliedThrottling) {
|
} else if (mAppliedThrottling) {
|
||||||
mAppliedThrottling = false;
|
mAppliedThrottling = false;
|
||||||
updateScreenBrightnessSetting = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateScreenBrightnessSetting) {
|
if (updateScreenBrightnessSetting) {
|
||||||
|
|||||||
Reference in New Issue
Block a user