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

Commit 2b8e3132 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent launcher gestures when back/assistant have activated"

parents 996d9f6a af7fc150
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);