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

am: 3a87cb0192

* commit '3a87cb0192052e20724b9107bc37d9e2d80978e2':
  Animate backlight quickly when display state request to change or power mode changed
This commit is contained in:
Michael Wright
2016-01-12 21:55:08 +00:00
committed by android-build-merger

View File

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