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

Commit 5eba563d authored by Robin Lee's avatar Robin Lee
Browse files

Don't play an animation for WAKE + KEYGUARD_OCCLUDE

DefaultTransitionHandler will check for this case and skip it
in case the transition lands there. If something specifically
requested to play the transition it will get a chance.

Bug: 340987552
Change-Id: Ib03321a4cc05fbb2dfb4e38776ec28a154851528
parent 15ae0eae
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -143,6 +143,10 @@ public class KeyguardTransitionHandler
    }

    public static boolean handles(TransitionInfo info) {
        // There is no animation for screen-wake unless we are immediately unlocking.
        if (info.getType() == WindowManager.TRANSIT_WAKE && !info.isKeyguardGoingAway()) {
            return false;
        }
        return (info.getFlags() & KEYGUARD_VISIBILITY_TRANSIT_FLAGS) != 0;
    }