Merge "Make PipTransition use animators bounds for unhandled case" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a2a683a56
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user