Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e260d8b authored by Kazuki Takise's avatar Kazuki Takise
Browse files

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
parent 1b4e2876
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);