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

Commit 144dc689 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't play an animation for WAKE + KEYGUARD_OCCLUDE" into main

parents 145c4b66 5eba563d
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -143,6 +143,10 @@ public class KeyguardTransitionHandler
    }
    }


    public static boolean handles(TransitionInfo info) {
    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;
        return (info.getFlags() & KEYGUARD_VISIBILITY_TRANSIT_FLAGS) != 0;
    }
    }