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

Commit 0e01c577 authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "GRANT TRUSTED_OVERLAY as part of start tx" into main

parents db423654 14855406
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -363,6 +363,11 @@ public class PipTransition extends PipTransitionController implements
            extra.putParcelable(PIP_TASK_INFO, pipChange.getTaskInfo());
            mPipTransitionState.setState(PipTransitionState.ENTERING_PIP, extra);

            // TRUSTED_OVERLAY is granted iff Shell successfully receives the transition.
            ProtoLog.d(WM_SHELL_PICTURE_IN_PICTURE,
                    "Set TRUSTED_OVERLAY for Task#%d", pipChange.getTaskInfo().taskId);
            startTransaction.setTrustedOverlay(pipChange.getLeash(), true);

            if (isInSwipePipToHomeTransition()) {
                // If this is the second transition as a part of swipe PiP to home cuj,
                // handle this transition as a special case with no-op animation.