Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9892bff3 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Reset windowing mode for split when starting existing tasks

* Sets windowing mode to undefined so task can assume windowing type
of parent.

Test: Tested w/ existing tasks in desktop and non-desktop
Flag: com.android.wm.shell.enable_flexible_two_app_split
Fixes: 381954590
Change-Id: Ic91785702a599d8f3c808e885d9cf43c0469ff5a
parent 3c02193d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -746,6 +746,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
            ProtoLog.d(WM_SHELL_SPLIT_SCREEN, "Reordering hide-task to bottom");
            wct.reorder(hideTaskToken, false /* onTop */);
        }
        prepareTasksForSplitScreen(new int[] {taskId}, wct);
        wct.startTask(taskId, options);
        // If this should be mixed, send the task to avoid split handle transition directly.
        if (mMixedHandler != null && mMixedHandler.isTaskInPip(taskId, mTaskOrganizer)) {