Merge "Fix inverted vertical offset of entering rotated PiP" into sc-dev am: 7f38c6c3a4

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

Change-Id: Ie035c1bdb3cd8e4069874c08a7c1e219023725ec
This commit is contained in:
Riddle Hsu
2021-06-09 17:07:25 +00:00
committed by Automerger Merge Worker

View File

@@ -149,10 +149,10 @@ public class PipSurfaceTransactionHelper {
// Shrink bounds (expand insets) in destination orientation. // Shrink bounds (expand insets) in destination orientation.
if (clockwise) { if (clockwise) {
positionX -= insets.top * scale; positionX -= insets.top * scale;
positionY -= insets.left * scale; positionY += insets.left * scale;
} else { } else {
positionX += insets.top * scale; positionX += insets.top * scale;
positionY += insets.left * scale; positionY -= insets.left * scale;
} }
} }
mTmpTransform.setScale(scale, scale); mTmpTransform.setScale(scale, scale);