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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user