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

Commit b8561efe authored by Simon (Qiong) Sun's avatar Simon (Qiong) Sun
Browse files

Temporarily hide split-screen divider during launch

This change ensures the split-screen divider bar is only visible once the split-screen tasks have finished launching. Previously, the divider could appear before the tasks were visible.

Bug: 431120034
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: 1. On a foldable device, create multiple split-screen pairs. 2. Open the Recents screen. 3. Launch a split pair that is not the most recent one. 4. Verify the divider bar appears at the same time as the apps.

Change-Id: I99e424977aedd7649c4a7dfd92bcb1284eef1b62
parent 41425ecf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -937,6 +937,12 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
            return;
        }

        if (enableFlexibleTwoAppSplit()
                && (!mMainStage.isActive() || !mSideStage.isActive()
                || !isSplitScreenVisible())) {
            setDividerVisibility(false, null);
        }

        setSideStagePosition(splitPosition, wct);
        options1 = options1 != null ? options1 : new Bundle();
        StageTaskListener stageForTask1;