Merge "Don't update brightness settings when throttling brightness" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-04-27 18:19:15 +00:00
committed by Android (Google) Code Review

View File

@@ -1389,12 +1389,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
// Brightness throttling is needed, so do so quickly.
// Later, when throttling is removed, we let other mechanisms decide on speed.
slowChange = false;
updateScreenBrightnessSetting = true;
}
mAppliedThrottling = true;
} else if (mAppliedThrottling) {
mAppliedThrottling = false;
updateScreenBrightnessSetting = true;
}
if (updateScreenBrightnessSetting) {