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

Commit d827ce1e authored by Shuming Hao's avatar Shuming Hao
Browse files

Update split config when launch adjacent in non-default displays

Split layout config should be updated when launch adjacent is called in
non-default displays. This CL updates the config before preparing to
move the split root to current display.

Bug: 438285797
Test: manual && atest WMShellUnitTests
Flag: com.android.window.flags.enable_non_default_display_split
Change-Id: Iafe3d3c97ddcd18e4acdb0b12b770c6e8526cb70
parent df7dfcb9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -910,6 +910,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
        }
        // For now, the only CUJ that can use this is LaunchAdjacent while on non-default displays.
        if (enableNonDefaultDisplaySplit()) {
            updateSplitLayoutConfig(mRootTDAOrganizer, displayId, mSplitLayout);
            prepareMovingSplitScreenRoot(wct, displayId);
        }
        wct.sendPendingIntent(intent, fillInIntent, options);