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

This commit is contained in:
TreeHugger Robot
2019-01-18 02:59:24 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

@@ -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());

View File

@@ -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);