From b2b93dd563b007422c143b5500776923bbadf67a Mon Sep 17 00:00:00 2001 From: Jacqueline Bronger Date: Tue, 7 Mar 2023 16:48:00 +0100 Subject: [PATCH] Fix Tv PiP fullscreen shell transition (bounds) Makes sure the menu surfaces scale together with the PiP content. Bug: 271098548 Test: manual - make sure shell transitions are enabled, enter a PiP and select fullscreen in the PiP menu -> menu buttons should fade out and menu bounds should scale with the PiP content instead of staying at the previous PiP location Change-Id: I5f4ccef489d3fedbe0c8c453c0eb538a1f611856 --- .../Shell/src/com/android/wm/shell/pip/PipTransition.java | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java index aa3afc5688009..5755a10897af2 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java @@ -611,6 +611,7 @@ public class PipTransition extends PipTransitionController { 0 /* startingAngle */, rotationDelta); animator.setTransitionDirection(TRANSITION_DIRECTION_LEAVE_PIP) .setPipAnimationCallback(mPipAnimationCallback) + .setPipTransactionHandler(mPipOrganizer.getPipTransactionHandler()) .setDuration(mEnterExitAnimationDuration) .start(); }