Merge "Prevent launcher gestures when back/assistant have activated"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b8e3132f5
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user