summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kazuki Takise <takise@google.com> 2023-03-24 22:18:10 +0900
committer Kazuki Takise <takise@google.com> 2023-03-29 11:51:00 +0000
commit142f4dcccd88aa0feeffb6155d9e7cc226142b33 (patch)
tree042b618aacdebb2f683bd931f27df3a85fd96aa8
parenteed16d7a8fccf0463710fc31903ccb6e2faf8793 (diff)
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
-rw-r--r--services/core/java/com/android/server/wm/ActivityTaskSupervisor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityTaskSupervisor.java b/services/core/java/com/android/server/wm/ActivityTaskSupervisor.java
index be503fc61c4c..feaec37fb985 100644
--- a/services/core/java/com/android/server/wm/ActivityTaskSupervisor.java
+++ b/services/core/java/com/android/server/wm/ActivityTaskSupervisor.java
@@ -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,