Merge "Only apply crop to task and task fragment in end transition" into tm-qpr-dev am: 0e8f4211ee am: 04e8b10138

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20663229

Change-Id: I33078d5279addc4f7a098fdc967aa772685ff268
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Riddle Hsu
2022-12-09 15:23:35 +00:00
committed by Automerger Merge Worker

View File

@@ -636,7 +636,7 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
// 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
// task layers.
if (target.asDisplayContent() != null || target.asActivityRecord() != null) {
if (target.asTaskFragment() == null) {
t.setCrop(targetLeash, null /* crop */);
} else {
// Crop to the resolved override bounds.