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

Commit 882331ec authored by Ahmed Fakhry's avatar Ahmed Fakhry
Browse files

Make `GroupedTaskInfo.forSplitTasks()` take non-null SplitBounds

See go/refactor-group-task for details.
ag/31398319 introduced `SingleTask` and `SplitTask` as subclasses of
`GroupTask`, and enforced that `SplitTask` accepts only non-null
`SplitBounds`. This is the Shell-side CL of this change.

Bug: 388593902
Test: m
Flag: EXEMPT pure refactor with no behavior change.
Change-Id: Ib9aafb641ceada40f9097d7d39d11334f38b8c82
parent a4e305b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ public class GroupedTaskInfo implements Parcelable {
     * Create new for a pair of tasks in split screen
     */
    public static GroupedTaskInfo forSplitTasks(@NonNull TaskInfo task1,
                    @NonNull TaskInfo task2, @Nullable SplitBounds splitBounds) {
                    @NonNull TaskInfo task2, @NonNull SplitBounds splitBounds) {
        return new GroupedTaskInfo(List.of(task1, task2), splitBounds, TYPE_SPLIT,
                null /* minimizedFreeformTasks */);
    }