Loading services/core/java/com/android/server/wm/Task.java +5 −6 Original line number Diff line number Diff line Loading @@ -968,6 +968,11 @@ class Task extends WindowContainer<WindowContainer> { final ActivityStack oldStack = ((ActivityStack) oldParent); final ActivityStack newStack = ((ActivityStack) newParent); // Task is going to be removed, clean it up before detaching from hierarchy. if (oldParent != null && newParent == null) { cleanUpResourcesForDestroy(); } mStack = newStack; super.onParentChanged(newParent, oldParent); Loading Loading @@ -1012,12 +1017,6 @@ class Task extends WindowContainer<WindowContainer> { updateOverrideConfigurationFromLaunchBounds(); } // Task is being removed. if (oldParent != null && newParent == null) { cleanUpResourcesForDestroy(); } // Update task bounds if needed. adjustBoundsForDisplayChangeIfNeeded(getDisplayContent()); Loading Loading
services/core/java/com/android/server/wm/Task.java +5 −6 Original line number Diff line number Diff line Loading @@ -968,6 +968,11 @@ class Task extends WindowContainer<WindowContainer> { final ActivityStack oldStack = ((ActivityStack) oldParent); final ActivityStack newStack = ((ActivityStack) newParent); // Task is going to be removed, clean it up before detaching from hierarchy. if (oldParent != null && newParent == null) { cleanUpResourcesForDestroy(); } mStack = newStack; super.onParentChanged(newParent, oldParent); Loading Loading @@ -1012,12 +1017,6 @@ class Task extends WindowContainer<WindowContainer> { updateOverrideConfigurationFromLaunchBounds(); } // Task is being removed. if (oldParent != null && newParent == null) { cleanUpResourcesForDestroy(); } // Update task bounds if needed. adjustBoundsForDisplayChangeIfNeeded(getDisplayContent()); Loading