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

Commit 987596da authored by Yash Garg's avatar Yash Garg 💬
Browse files

check if action is split screen and change to nothing

parent 3d3f2a34
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2365,6 +2365,12 @@ 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;
            Log.i(TAG, "inside true condition");
        }

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