Merge "Make PipTransition use animators bounds for unhandled case" into udc-dev

This commit is contained in:
Mateusz Cicheński
2023-06-29 17:34:35 +00:00
committed by Android (Google) Code Review

View File

@@ -1059,7 +1059,7 @@ public class PipTransition extends PipTransitionController {
// When the PIP window is visible and being a part of the transition, such as display
// rotation, we need to update its bounds and rounded corner.
final SurfaceControl leash = pipChange.getLeash();
final Rect destBounds = mPipBoundsState.getBounds();
final Rect destBounds = mPipOrganizer.getCurrentOrAnimatingBounds();
final boolean isInPip = mPipTransitionState.isInPip();
mSurfaceTransactionHelper
.crop(startTransaction, leash, destBounds)