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

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

Change-Id: I431eb75d25b958bef70830eb3e269841f8a65d7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-12-06 06:31:03 +00:00
committed by Automerger Merge Worker

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