Add the leaf task to the recents animation target

- The root task in splitscreen is the secondary shell root

Change-Id: I298c846ef813fff5a1bfff8087a45054ff8957d7
Bug: 157624680
Test: Quickswitch in fullscreen and in splitscreen
This commit is contained in:
Winson Chung
2020-05-29 19:48:15 -07:00
parent 7d4bad92af
commit db9eefb4cb

View File

@@ -3510,7 +3510,7 @@ class Task extends WindowContainer<WindowContainer> {
ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
"applyAnimationUnchecked, control: %s, task: %s, transit: %s",
control, asTask(), AppTransition.appTransitionToString(transit));
control.addTaskToTargets(getRootTask(), finishedCallback);
control.addTaskToTargets(this, finishedCallback);
}
} else {
super.applyAnimationUnchecked(lp, enter, transit, isVoiceInteraction, finishedCallback);