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

Commit af7fc150 authored by Matthew Ng's avatar Matthew Ng
Browse files

Prevent launcher gestures when back/assistant have activated

Do not proxy anymore motion events after back or assistant has started
so that the launcher does not try to execute quick step if the user
swipes a gesture followed by swiping up.

Test: manual
Bug: 112934365
Change-Id: I6711b52e7870193051afd38704fa0be86ad242b8
parent e49bb322
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -42,6 +42,11 @@ public class NavigationAssistantAction extends NavigationGestureAction {
        return true;
    }

    @Override
    public boolean disableProxyEvents() {
        return true;
    }

    @Override
    public void onGestureStart(MotionEvent event) {
        mAssistManager.startAssist(new Bundle());
+5 −0
Original line number Diff line number Diff line
@@ -95,6 +95,11 @@ public class NavigationBackAction extends NavigationGestureAction {
        }
    }

    @Override
    public boolean disableProxyEvents() {
        return true;
    }

    private void performBack() {
        sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK);
        sendEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK);