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

Commit 3c43ea28 authored by Jeff Chang's avatar Jeff Chang
Browse files

Update the divider visibility when moveToStage

The visibility of the divider should be updated when entered by
moveToStage. This CL updates the visibility of the divider to make
sure the divider is visible.

Bug:279137288
Test: adb shell dumpsys activity service SystemUIService WMShell
      splitscreen moveToSideStage taskId stageId
      atest StageCoordinatorTests
Change-Id: I5a4a841d8578ad9f9a64b397149ca110916d2f38
parent ed169035
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -359,6 +359,9 @@ public class SplitScreenController implements DragAndDropPolicy.Starter,
        if (task == null) {
            throw new IllegalArgumentException("Unknown taskId" + taskId);
        }
        if (isTaskInSplitScreen(taskId)) {
            throw new IllegalArgumentException("taskId is in split" + taskId);
        }
        return mStageCoordinator.moveToStage(task, stagePosition, wct);
    }

+1 −0
Original line number Diff line number Diff line
@@ -395,6 +395,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
            mSyncQueue.queue(wct);
            mSyncQueue.runInSync(t -> {
                updateSurfaceBounds(mSplitLayout, t, false /* applyResizingOffset */);
                setDividerVisibility(true, t);
            });
        } else {
            setSideStagePosition(sideStagePosition, wct);