Merge "Make rotation leash for rotated multi-activity pip expand" into udc-dev am: 992d2ec265

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

Change-Id: I21218eda14aeefdf0ea5e677ab6f1420120837a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Rosky
2023-05-03 17:20:24 +00:00
committed by Automerger Merge Worker

View File

@@ -4614,6 +4614,13 @@ class Task extends TaskFragment {
topActivity.reparent(lastParentBeforePip,
lastParentBeforePip.getChildCount() /* top */,
"movePinnedActivityToOriginalTask");
final DisplayContent dc = topActivity.getDisplayContent();
if (dc != null && dc.isFixedRotationLaunchingApp(topActivity)) {
// Expanding pip into new rotation, so create a rotation leash
// until the display is rotated.
topActivity.getOrCreateFixedRotationLeash(
topActivity.getSyncTransaction());
}
lastParentBeforePip.moveToFront("movePinnedActivityToOriginalTask");
}
}