Merge "Use resolved configuration for shell transit clip rect" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ad2993445f
@@ -646,8 +646,8 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
|||||||
if (target.asDisplayContent() != null || target.asActivityRecord() != null) {
|
if (target.asDisplayContent() != null || target.asActivityRecord() != null) {
|
||||||
t.setCrop(targetLeash, null /* crop */);
|
t.setCrop(targetLeash, null /* crop */);
|
||||||
} else {
|
} else {
|
||||||
// Crop to the requested bounds.
|
// Crop to the resolved override bounds.
|
||||||
final Rect clipRect = target.getRequestedOverrideBounds();
|
final Rect clipRect = target.getResolvedOverrideBounds();
|
||||||
t.setWindowCrop(targetLeash, clipRect.width(), clipRect.height());
|
t.setWindowCrop(targetLeash, clipRect.width(), clipRect.height());
|
||||||
}
|
}
|
||||||
t.setCornerRadius(targetLeash, 0);
|
t.setCornerRadius(targetLeash, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user