Fix not able to indicate split position in command to enter split

Fix: 242149134
Test: command "splitscreen moveToSideStage <taskid> <pos>" works
Change-Id: Ifa366af13b92610dc27d711256cb55d323e021a4
This commit is contained in:
Jerry Chang
2022-08-15 06:32:18 +00:00
parent 27e8872983
commit f67598da9e

View File

@@ -56,7 +56,7 @@ public class SplitScreenShellCommandHandler implements
return false;
}
final int taskId = new Integer(args[1]);
final int sideStagePosition = args.length > 3
final int sideStagePosition = args.length > 2
? new Integer(args[2]) : SPLIT_POSITION_BOTTOM_OR_RIGHT;
mController.moveToSideStage(taskId, sideStagePosition);
return true;