Don't override bounds when reparenting
Now that everything is in a hierarchy and inherit bounds,
reparenting shouldn't cause override bounds to be set.
This was causing bounds to be hard-coded incorrectly.
Bug: 156014697
Test: Launch into secondary repeatedly and observe no
lasting blackness. Also can take a WM dump and
verify that override-bounds are not unnecessarily
set on tasks
Change-Id: I7b57a989869e52d9e665c9c86eda0c01ce30c997
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
index 36caeec..f21ec6b 100644
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
@@ -3340,7 +3340,7 @@
// After reparenting (which only resizes the task to the stack bounds), resize the
// task to the actual bounds provided
- task.resize(bounds, resizeMode, preserveWindow, !DEFER_RESUME);
+ task.resize(bounds, resizeMode, preserveWindow);
}
} finally {
Binder.restoreCallingIdentity(ident);