Merge "AOD: Only play wakeup animation when actually waking up" into oc-dr1-dev

This commit is contained in:
TreeHugger Robot
2017-08-25 21:25:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}
}