Merge "Hide leaf-tasks at end of swipe-to-home animation" into tm-qpr-dev am: 6117e9ff3e

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

Change-Id: I8ccbaacf970ec9f1342e99dc7d5ef779071e0cf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Rosky
2022-04-18 17:02:36 +00:00
committed by Automerger Merge Worker

View File

@@ -388,12 +388,17 @@ public class RemoteTransitionCompat implements Parcelable {
wct.restoreTransientOrder(mRecentsTask);
}
} else {
if (!sendUserLeaveHint) {
for (int i = 0; i < mPausingTasks.size(); ++i) {
for (int i = 0; i < mPausingTasks.size(); ++i) {
if (!sendUserLeaveHint) {
// This means recents is not *actually* finishing, so of course we gotta
// do special stuff in WMCore to accommodate.
wct.setDoNotPip(mPausingTasks.get(i));
}
// Since we will reparent out of the leashes, pre-emptively hide the child
// surface to match the leash. Otherwise, there will be a flicker before the
// visibility gets committed in Core when using split-screen (in splitscreen,
// the leaf-tasks are not "independent" so aren't hidden by normal setup).
t.hide(mInfo.getChange(mPausingTasks.get(i)).getLeash());
}
if (mPipTask != null && mPipTransaction != null && sendUserLeaveHint) {
t.show(mInfo.getChange(mPipTask).getLeash());