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

Commit c449c7e3 authored by Yash Garg's avatar Yash Garg 💬
Browse files

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

parent c3b4516f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2453,6 +2453,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                LineageSettings.System.KEY_APP_SWITCH_LONG_PRESS_ACTION,
                mAppSwitchLongPressAction);

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

        mEdgeLongSwipeAction = Action.fromSettings(resolver,
                LineageSettings.System.KEY_EDGE_LONG_SWIPE_ACTION,
                mEdgeLongSwipeAction);