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

Commit 0d4eb64a authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "Use appBounds for source bounds if provided" into main

parents 0c82ebeb be0d99a0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1173,7 +1173,12 @@ public class PipTransition extends PipTransitionController {
                    .setLayer(swipePipToHomeOverlay, Integer.MAX_VALUE);
        }

        final Rect sourceBounds = pipTaskInfo.configuration.windowConfiguration.getBounds();
        // Both Shell and Launcher calculate their own "adjusted" source-rect-hint values based on
        // appBounds being source bounds when entering PiP.
        final Rect sourceBounds = swipePipToHomeOverlay == null
                ? pipTaskInfo.configuration.windowConfiguration.getBounds()
                : mPipOrganizer.mAppBounds;

        final PipAnimationController.PipTransitionAnimator animator =
                mPipAnimationController.getAnimator(pipTaskInfo, leash, sourceBounds, sourceBounds,
                        destinationBounds, sourceHintRect, TRANSITION_DIRECTION_TO_PIP,