Merge "Apply the last recents animation transform on single-activity PIP tasks" into sc-qpr1-dev

This commit is contained in:
Winson Chung
2021-10-11 17:31:18 +00:00
committed by Android (Google) Code Review

View File

@@ -2125,6 +2125,9 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
final Task rootTask;
if (singleActivity) {
rootTask = task;
// Apply the last recents animation leash transform to the task entering PIP
rootTask.maybeApplyLastRecentsAnimationTransaction();
} else {
// In the case of multiple activities, we will create a new task for it and then
// move the PIP activity into the task. Note that we explicitly defer the task