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

Commit 45d4645d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "SysUI: Don't try to put non-resizeable task in split-screen" into...

Merge "SysUI: Don't try to put non-resizeable task in split-screen" into rvc-dev am: 28970f11 am: 755ddabf am: 68330b39

Change-Id: Id9f8ab09ed7ecef72d28ecbb2812318309ff0634
parents 006eb225 68330b39
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -180,12 +180,17 @@ public class WindowManagerProxy {
            if (isHomeOrRecentTask(rootTask)) {
                tiles.mHomeAndRecentsSurfaces.add(rootTask.token.getLeash());
            }
            // Only move resizeable task to split secondary. WM will just ignore this anyways...
            if (!rootTask.isResizable()) continue;
            // Only move fullscreen tasks to split secondary.
            if (rootTask.configuration.windowConfiguration.getWindowingMode()
                    != WINDOWING_MODE_FULLSCREEN) {
                continue;
            }
            wct.reparent(rootTask.token, tiles.mSecondary.token, true /* onTop */);
        }
        // Move the secondary split-forward.
        wct.reorder(tiles.mSecondary.token, true /* onTop */);
        boolean isHomeResizable = applyHomeTasksMinimized(layout, null /* parent */, wct);
        WindowOrganizer.applyTransaction(wct);
        return isHomeResizable;