Merge "Only apply crop to task and task fragment in end transition" into tm-qpr-dev

This commit is contained in:
Riddle Hsu
2022-12-09 14:40:44 +00:00
committed by Android (Google) Code Review

View File

@@ -643,7 +643,7 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
// No need to clip the display in case seeing the clipped content when during the // No need to clip the display in case seeing the clipped content when during the
// display rotation. No need to clip activities because they rely on clipping on // display rotation. No need to clip activities because they rely on clipping on
// task layers. // task layers.
if (target.asDisplayContent() != null || target.asActivityRecord() != null) { if (target.asTaskFragment() == null) {
t.setCrop(targetLeash, null /* crop */); t.setCrop(targetLeash, null /* crop */);
} else { } else {
// Crop to the resolved override bounds. // Crop to the resolved override bounds.