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

Commit 665e9af6 authored by mattsziklay's avatar mattsziklay
Browse files

Return early in startTask if taskId is other split stage.

Fixes a crash from calling startTask with a taskId that's already open
in split.

Bug: 380321878
Test: Manual
Flag: EXEMPT bugfix
Change-Id: I8efd5d4a4beab937f54b6f9fd0a09f91e21cbd15
parent 94bf7a71
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -582,6 +582,7 @@ public class SplitScreenController implements SplitDragPolicy.Starter,
            @Nullable WindowContainerToken hideTaskToken) {
        ProtoLog.v(ShellProtoLogGroup.WM_SHELL_DRAG_AND_DROP,
                "Legacy startTask does not support hide task token");
        if (isTaskInSplitScreenForeground(taskId)) return;
        final int[] result = new int[1];
        IRemoteAnimationRunner wrapper = new IRemoteAnimationRunner.Stub() {
            @Override