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

Commit be498432 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Do not enter stage split from keyboard shortcuts if the user is already in split

Fixes: 319640005
Test: Nothing happens when triggering split shortcuts in full split
Change-Id: I7bfe82a9255d2822ca90ed5bb1733021e2465602
parent e66ed039
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import com.android.quickstep.RecentsAnimationDeviceState;
import com.android.quickstep.RecentsAnimationTargets;
import com.android.quickstep.RecentsModel;
import com.android.quickstep.SystemUiProxy;
import com.android.quickstep.TopTaskTracker;
import com.android.quickstep.views.FloatingTaskView;
import com.android.quickstep.views.RecentsView;
import com.android.systemui.shared.recents.model.Task;
@@ -75,7 +76,9 @@ public class SplitWithKeyboardShortcutController {

    @BinderThread
    public void enterStageSplit(boolean leftOrTop) {
        if (!enableSplitContextually()) {
        if (!enableSplitContextually() ||
                // Do not enter stage split from keyboard shortcuts if the user is already in split
                TopTaskTracker.INSTANCE.get(mLauncher).getRunningSplitTaskIds().length == 2) {
            return;
        }
        RecentsAnimationCallbacks callbacks = new RecentsAnimationCallbacks(