Merge "Make PipTransition use animators bounds for unhandled case" into udc-dev am: 9a2a683a56

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23822674

Change-Id: Iea222c24149dae241976dbc52268ef76601d66f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mateusz Cicheński
2023-06-29 17:36:52 +00:00
committed by Automerger Merge Worker

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 // 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. // rotation, we need to update its bounds and rounded corner.
final SurfaceControl leash = pipChange.getLeash(); final SurfaceControl leash = pipChange.getLeash();
final Rect destBounds = mPipBoundsState.getBounds(); final Rect destBounds = mPipOrganizer.getCurrentOrAnimatingBounds();
final boolean isInPip = mPipTransitionState.isInPip(); final boolean isInPip = mPipTransitionState.isInPip();
mSurfaceTransactionHelper mSurfaceTransactionHelper
.crop(startTransaction, leash, destBounds) .crop(startTransaction, leash, destBounds)