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

Commit 76ab1b4d authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Fix the flicker when entering PiP from Recents

Noticed onKeyguardVisibilityChanged(visible=false,
                                    occluded=false,
                                    animatingDismiss=false)
callback when entering PiP from Recents, which causes the PiP window to
be visible while it has not settled in final bounds.

Bug: 264497272
Test: repeatedly enter PiP from Recents
Test: Ensure PiP window is visible upon device unlock
Change-Id: I807a8f081001997a25aa37ab0a7d1a19ac6397ff
parent ef78f4d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -817,7 +817,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
    @Override
    public void onKeyguardVisibilityChanged(boolean visible, boolean occluded,
            boolean animatingDismiss) {
        if (!mPipTaskOrganizer.isInPip()) {
        if (!mPipTransitionState.hasEnteredPip()) {
            return;
        }
        if (visible) {