Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b465763e authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Fix notification animation from AOD

This CL fixes the notification animation when launched from the AOD by
making sure that we don't play both the notification animation and the
wake-and-unlock transition.

As shown in b/236487811#comment24, the resulting animation looks better
but still not perfect. A better, longer term fix would probably be to
not wake up the phone at all, do the transition, then instantly hide the
shade/keyguard.

Bug: 236487811
Test: Manual
Change-Id: I4dec3651ea385a74c3564ad7c19fb10802b3464d
parent 0251a892
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2721,7 +2721,8 @@ public class CentralSurfacesImpl extends CoreStartable implements
    @Override
    public void dismissKeyguardThenExecute(OnDismissAction action, Runnable cancelAction,
            boolean afterKeyguardGone) {
        if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP
        if (!action.willRunAnimationOnKeyguard()
                && mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP
                && mKeyguardStateController.canDismissLockScreen()
                && !mStatusBarStateController.leaveOpenOnKeyguardHide()
                && mDozeServiceHost.isPulsing()) {