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

Commit 23ef82f4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Keep top fullscreen tasks on top when dismiss splits"

parents 37b7788a 7cac8493
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1294,7 +1294,13 @@ final class TaskDisplayArea extends DisplayArea<Task> {
    }

    void onSplitScreenModeDismissed() {
        onSplitScreenModeDismissed(null /* toTop */);
        // The focused task could be a non-resizeable fullscreen root task that is on top of the
        // other split-screen tasks, therefore had to dismiss split-screen, make sure the current
        // focused root task can still be on top after dismissal
        final Task rootTask = getFocusedStack();
        final Task toTop =
                rootTask != null && !rootTask.inSplitScreenWindowingMode() ? rootTask : null;
        onSplitScreenModeDismissed(toTop);
    }

    void onSplitScreenModeDismissed(Task toTop) {