diff options
| author | 2020-04-07 01:03:12 +0000 | |
|---|---|---|
| committer | 2020-04-07 01:03:12 +0000 | |
| commit | 55ace3ebb34bb6437778209baebbb5df700a7250 (patch) | |
| tree | 9cfc2c08f38420270c907a21c832ec225464b60c | |
| parent | b6c403b091c623718e2bb1d18b167b7d13b600f6 (diff) | |
| parent | 06107a36171df7702e0430be91ba34e0560fbb09 (diff) | |
Merge "Fix tasks not resized in split-screen" into rvc-dev
| -rw-r--r-- | services/core/java/com/android/server/wm/Task.java | 3 |
1 files changed, 2 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 7c6343c87232..cb897db9a2d0 100644 --- a/services/core/java/com/android/server/wm/Task.java +++ b/services/core/java/com/android/server/wm/Task.java @@ -2448,7 +2448,8 @@ class Task extends WindowContainer<WindowContainer> { Rect updateOverrideConfigurationFromLaunchBounds() { // If the task is controlled by another organized task, do not set override // configurations and let its parent (organized task) to control it; - final Rect bounds = isOrganized() && !isRootTask() ? null : getLaunchBounds(); + final Task rootTask = getRootTask(); + final Rect bounds = rootTask != this && rootTask.isOrganized() ? null : getLaunchBounds(); setBounds(bounds); if (bounds != null && !bounds.isEmpty()) { // TODO: Review if we actually want to do this - we are setting the launch bounds |