Merge "Fix the round corner and crop issue after auto-enter-pip" into sc-dev

This commit is contained in:
Hongwei Wang
2021-07-01 19:12:26 +00:00
committed by Android (Google) Code Review

View File

@@ -7653,9 +7653,9 @@ class Task extends WindowContainer<WindowContainer> {
mLastRecentsAnimationTransaction = null; mLastRecentsAnimationTransaction = null;
mLastRecentsAnimationOverlay = null; mLastRecentsAnimationOverlay = null;
// reset also the crop and transform introduced by mLastRecentsAnimationTransaction // reset also the crop and transform introduced by mLastRecentsAnimationTransaction
Rect bounds = getBounds();
getPendingTransaction().setMatrix(mSurfaceControl, Matrix.IDENTITY_MATRIX, new float[9]) getPendingTransaction().setMatrix(mSurfaceControl, Matrix.IDENTITY_MATRIX, new float[9])
.setWindowCrop(mSurfaceControl, bounds.width(), bounds.height()); .setWindowCrop(mSurfaceControl, null)
.setCornerRadius(mSurfaceControl, 0);
} }
void maybeApplyLastRecentsAnimationTransaction() { void maybeApplyLastRecentsAnimationTransaction() {