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

Commit 7b23cc03 authored by Yash Garg's avatar Yash Garg 💬
Browse files

set app switch action to nothing if it's set to split screen (Q)

parent eade1a50
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2330,6 +2330,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        mAppSwitchLongPressAction = Action.fromIntSafe(res.getInteger(
                org.lineageos.platform.internal.R.integer.config_longPressOnAppSwitchBehavior));

        // If [appSwitchLongPressAction] is [SPLIT_SCREEN], switch to [NOTHING]
        if (mAppSwitchLongPressAction.ordinal() == Action.SPLIT_SCREEN.ordinal()) {
            mAppSwitchLongPressAction = Action.NOTHING;
        }

        mEdgeLongSwipeAction = Action.NOTHING;

        mHomeLongPressAction = Action.fromIntSafe(res.getInteger(