summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2017-08-22 15:27:27 +0000
committer Adrian Roos <roosa@google.com> 2017-08-22 15:28:16 +0000
commit1b181e1267a1dd73f08115a9eac3a086cb91296e (patch)
tree08711146129b1c6e0de5533c659aa477cbe46578
parentdd09e994f5d1a92a4a922dbc8742d0c15d9342d3 (diff)
DozeScrimController: Fix tight-posting bug
Fixes a typo that lead to never-ending posting of runnables Change-Id: I6fb36d000d0af53142576a2deffa49151db270b4 Fixes: 64908631 Test: Repeatedly put the device to sleep and wake up with AOD enabled. Ensure system load stays low.
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java
index f06dd7bc7cc2..021b4518efbe 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java
@@ -304,7 +304,7 @@ public class DozeScrimController {
mHandler.removeCallbacks(mSetDozeInFrontAlphaDelayed);
mSetDozeInFrontAlphaDelayed = null;
}
- if (delayMs < 0) {
+ if (delayMs <= 0) {
mScrimController.setDozeInFrontAlpha(opacity);
} else {
mHandler.postDelayed(mSetDozeInFrontAlphaDelayed = () -> {