Merge "Animate backlight quickly when display state request to change or power mode changed"

This commit is contained in:
Michael Wright
2016-01-12 21:46:38 +00:00
committed by Gerrit Code Review

View File

@@ -673,6 +673,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
slowChange = false; slowChange = false;
} }
mAppliedDimming = true; mAppliedDimming = true;
} else if (mAppliedDimming) {
slowChange = false;
mAppliedDimming = false;
} }
// If low power mode is enabled, cut the brightness level by half // If low power mode is enabled, cut the brightness level by half
@@ -685,6 +688,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
slowChange = false; slowChange = false;
} }
mAppliedLowPower = true; mAppliedLowPower = true;
} else if (mAppliedLowPower) {
slowChange = false;
mAppliedLowPower = false;
} }
// Animate the screen brightness when the screen is on or dozing. // Animate the screen brightness when the screen is on or dozing.