summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2017-08-21 17:17:20 +0200
committer Adrian Roos <roosa@google.com> 2017-08-23 16:39:13 +0000
commit365835ff4ee01a648b13948683e850921c4a982a (patch)
tree5f46beb35dc2fa60a5f428589f270d21daf9bd26
parentf564bcc159b0e6b6cdeb594c5264b8e48e8fa500 (diff)
AOD: Only play wakeup animation when actually waking up
Fixes an issue where the wake up animation could play when going to sleep, if the screen turning on for AOD happened after the finishing going to sleep. Change-Id: I6b00aaefb672a630f43ca229d6cc66d12bc4205c Fixes: 64814671 Test: Pull up app launcher, turn off screen, verify AOD does not blink. (cherry picked from commit b9afae2e50c0240ee103ab44fad13b75aef985b6)
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 3d2213bf56e8..ada98b7a2ca3 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -5236,8 +5236,7 @@ public class StatusBar extends SystemUI implements DemoMode,
private void maybePrepareWakeUpFromAod() {
int wakefulness = mWakefulnessLifecycle.getWakefulness();
- if (mDozing && (wakefulness == WAKEFULNESS_WAKING
- || wakefulness == WAKEFULNESS_ASLEEP) && !isPulsing()) {
+ if (mDozing && wakefulness == WAKEFULNESS_WAKING && !isPulsing()) {
mScrimController.prepareWakeUpFromAod();
}
}