summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Chang <chengjeff@google.com> 2020-07-03 20:14:02 +0800
committer Jeff Chang <chengjeff@google.com> 2020-07-03 20:14:02 +0800
commit1cfcdf7bc963e8a34cac1d5b46fcbf78cb5108b8 (patch)
tree602b3e08c6a9e8dc810848d893408b0fa1218cad
parentfb87c72c660c9cade7b8a730a9122f11ca3b8a46 (diff)
Fix stack reference is not updated when task organizer is dead.
The Task Organizer controller handles the binder dead when SystemUI crashed. mTaskOrganizer was assigned to null first and then removes the related child. But the stack reference is not updated if taskOrgainzer is null. The invalid home task is referenced when we start the launcher. This CL updates the condition to make sure the stack references are updated. Bug: 158756447 Test: 1. Setup the split-screen. 2. Press power key to show Lock-screen 3. Kill the systemUI process 4. Unlock and resume to the launcher. Change-Id: I5c3f03c4d7fecab6e812dfba6823d79d844d6a26
-rw-r--r--services/core/java/com/android/server/wm/Task.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/Task.java b/services/core/java/com/android/server/wm/Task.java
index c664a841fc1f..6785127d5953 100644
--- a/services/core/java/com/android/server/wm/Task.java
+++ b/services/core/java/com/android/server/wm/Task.java
@@ -1423,7 +1423,7 @@ class Task extends WindowContainer<WindowContainer> {
void removeChild(WindowContainer r, String reason) {
// A rootable child task that is now being removed from an organized task. Making sure
// the stack references is keep updated.
- if (mTaskOrganizer != null && mCreatedByOrganizer && r.asTask() != null) {
+ if (mCreatedByOrganizer && r.asTask() != null) {
getDisplayArea().removeStackReferenceIfNeeded((ActivityStack) r);
}
if (!mChildren.contains(r)) {