summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/power/DisplayPowerController.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-10-24 14:46:26 -0700
committerJeff Brown <jeffbrown@google.com>2012-10-24 14:46:26 -0700
commit5244c93176497f7c151f85a46e46b534379603bc (patch)
tree64f978239dd7d0986b5573bdee6eb6922b06520d /services/java/com/android/server/power/DisplayPowerController.java
parentf0681b34dffc1510cbd9c3da5c3a7e695553fa8d (diff)
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
Diffstat (limited to 'services/java/com/android/server/power/DisplayPowerController.java')
-rw-r--r--services/java/com/android/server/power/DisplayPowerController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/power/DisplayPowerController.java b/services/java/com/android/server/power/DisplayPowerController.java
index 4abd8f5798c1..317fec05d41a 100644
--- a/services/java/com/android/server/power/DisplayPowerController.java
+++ b/services/java/com/android/server/power/DisplayPowerController.java
@@ -648,10 +648,10 @@ final class DisplayPowerController {
mUsingScreenAutoBrightness = false;
}
if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DIM) {
- // Dim slowly by at least some minimum amount.
+ // Dim quickly by at least some minimum amount.
target = Math.min(target - SCREEN_DIM_MINIMUM_REDUCTION,
mScreenBrightnessDimConfig);
- slow = true;
+ slow = false;
} else if (wasDim) {
// Brighten quickly.
slow = false;