Merge "Fix inverted vertical offset of entering rotated PiP" into sc-dev

This commit is contained in:
Riddle Hsu
2021-06-09 16:51:34 +00:00
committed by Android (Google) Code Review

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);