Use resolved configuration for shell transit clip rect

Requested override configuration can be adjusted in Core when some
policies such as task min size are applied.

Bug: 185427982
Test: SplashScreenTests#testSetBackgroundColorActivity_FreeformWindow
Change-Id: If9fb9e26fff9cfe448e0b8fdd87e13429ec63f87
This commit is contained in:
Kazuki Takise
2022-11-26 09:01:12 +09:00
parent 1b4e287609
commit 1e260d8b89

View File

@@ -626,8 +626,8 @@ class Transition extends Binder implements BLASTSyncEngine.TransactionReadyListe
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);