Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce4912f7 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Exclude the split-secondary offsets when auto-enter-pip

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/b1j4eK7BU18sOGfuDlKMFR
Bug: 190855091
Test: manual, see video
Change-Id: I22c2387d392ef2dd43269de4db1e2c2eb7bc155f
parent e1ae3b74
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,8 +82,8 @@ public class PipSurfaceTransactionHelper {
        final float scale = sourceBounds.width() <= sourceBounds.height()
                ? (float) destinationBounds.width() / sourceBounds.width()
                : (float) destinationBounds.height() / sourceBounds.height();
        final float left = destinationBounds.left - insets.left * scale;
        final float top = destinationBounds.top - insets.top * scale;
        final float left = destinationBounds.left - (insets.left + sourceBounds.left) * scale;
        final float top = destinationBounds.top - (insets.top + sourceBounds.top) * scale;
        mTmpTransform.setScale(scale, scale);
        final float cornerRadius = getScaledCornerRadius(mTmpDestinationRect, destinationBounds);
        tx.setMatrix(leash, mTmpTransform, mTmpFloat9)