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

Commit e3579caf authored by minch's avatar minch
Browse files

Make `splitBounds` of `forSplitTasks` nullable

We are allowing pass null `splitBounds` while building
a `GroupedTaskInfo` for split, see ag/32400282.

Bug: 401582344
Flag: EXEMPT refactor
Test: m
Change-Id: Ic13b7667d1b38506ba50aa9113a3954f1dcead30
parent 68c80f9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,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, @NonNull SplitBounds splitBounds) {
            @NonNull TaskInfo task2, @Nullable SplitBounds splitBounds) {
        return new GroupedTaskInfo(/* deskId = */ -1, /* displayId = */ INVALID_DISPLAY,
                List.of(task1, task2),
                splitBounds, TYPE_SPLIT, /* minimizedFreeformTaskIds = */ null);