Skip to content

Commit 5244c93

Browse files
author
Jeff Brown
committed
Dim the screen quickly in response to user activity timeout.
Reverts a previous change that made the screen dim slowly instead. The quick transition does a better job of attracting the user's attention to the fact that the screen is about to turn off unless the user touches the screen. Bug: 7386034 Change-Id: I81e4d8939f6791b96352004984a9e5b2aab79788
1 parent f0681b3 commit 5244c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/java/com/android/server/power/DisplayPowerController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,10 @@ private void updatePowerState() {
648648
mUsingScreenAutoBrightness = false;
649649
}
650650
if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DIM) {
651-
// Dim slowly by at least some minimum amount.
651+
// Dim quickly by at least some minimum amount.
652652
target = Math.min(target - SCREEN_DIM_MINIMUM_REDUCTION,
653653
mScreenBrightnessDimConfig);
654-
slow = true;
654+
slow = false;
655655
} else if (wasDim) {
656656
// Brighten quickly.
657657
slow = false;

0 commit comments

Comments
 (0)