Merge "Fix regression in rotation rect being clobbered."
This commit is contained in:
committed by
Android (Google) Code Review
commit
3389df71f1
@@ -108,6 +108,7 @@ class PinnedStackController {
|
||||
private final DisplayMetrics mTmpMetrics = new DisplayMetrics();
|
||||
private final Rect mTmpInsets = new Rect();
|
||||
private final Rect mTmpRect = new Rect();
|
||||
private final Rect mTmpAnimatingBoundsRect = new Rect();
|
||||
private final Point mTmpDisplaySize = new Point();
|
||||
|
||||
/**
|
||||
@@ -359,7 +360,7 @@ class PinnedStackController {
|
||||
if (isValidPictureInPictureAspectRatio(mAspectRatio)) {
|
||||
transformBoundsToAspectRatio(normalBounds, mAspectRatio);
|
||||
}
|
||||
final Rect animatingBounds = mTmpRect;
|
||||
final Rect animatingBounds = mTmpAnimatingBoundsRect;
|
||||
final TaskStack pinnedStack = mDisplayContent.getStackById(PINNED_STACK_ID);
|
||||
if (pinnedStack != null) {
|
||||
pinnedStack.getAnimatingBounds(animatingBounds);
|
||||
|
||||
Reference in New Issue
Block a user