Merge "Use resolved configuration for shell transit clip rect" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-12-06 05:50:50 +00:00
committed by Android (Google) Code Review

View File

@@ -646,8 +646,8 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
if (target.asDisplayContent() != null || target.asActivityRecord() != null) {
t.setCrop(targetLeash, null /* crop */);
} else {
// Crop to the requested bounds.
final Rect clipRect = target.getRequestedOverrideBounds();
// Crop to the resolved override bounds.
final Rect clipRect = target.getResolvedOverrideBounds();
t.setWindowCrop(targetLeash, clipRect.width(), clipRect.height());
}
t.setCornerRadius(targetLeash, 0);