Request transtion when a task is removed

When PIP gets killed via removeRootTasksWithActivityTypes(), no
transition is requested. For non-PIP tasks, processRemoveTask()
is called to remove the task, in which
requestCloseTransitionIfNeeded() is invoked.

But in the case of PIP, removePinnedRootTaskInSurfaceTransaction()
is called but we seem to miss requesting a close transition.

Bug: 275021556
Bug: 273141544
Bug: 272637936
Test: PinnedStackTests
Change-Id: I4c13ecc1b3c1dff15bd0d61aeafeacc1d7705460
This commit is contained in:
Kazuki Takise
2023-03-24 22:18:10 +09:00
parent eed16d7a8f
commit 142f4dcccd

View File

@@ -1562,6 +1562,7 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks {
}
private void removePinnedRootTaskInSurfaceTransaction(Task rootTask) {
rootTask.mTransitionController.requestCloseTransitionIfNeeded(rootTask);
/**
* Workaround: Force-stop all the activities in the root pinned task before we reparent them
* to the fullscreen root task. This is to guarantee that when we are removing a root task,