am 1751615f: Merge "Remove unnecessary override of MainKeyboardView.dispatchTouchEvent"
* commit '1751615f7d6702c6f3438a402e0ce179aafd15cf': Remove unnecessary override of MainKeyboardView.dispatchTouchEventmain
commit
bf723b081a
|
@ -203,19 +203,6 @@ public final class AccessibleKeyboardViewProxy extends AccessibilityDelegateComp
|
||||||
return getAccessibilityNodeProvider();
|
return getAccessibilityNodeProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Intercepts touch events before dispatch when touch exploration is turned on in ICS and
|
|
||||||
* higher.
|
|
||||||
*
|
|
||||||
* @param event The motion event being dispatched.
|
|
||||||
* @return {@code true} if the event is handled
|
|
||||||
*/
|
|
||||||
public boolean dispatchTouchEvent(final MotionEvent event) {
|
|
||||||
// To avoid accidental key presses during touch exploration, always drop
|
|
||||||
// touch events generated by the user.
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Receives hover events when touch exploration is turned on in SDK versions ICS and higher.
|
* Receives hover events when touch exploration is turned on in SDK versions ICS and higher.
|
||||||
*
|
*
|
||||||
|
|
|
@ -725,14 +725,6 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
||||||
return mKeyTimerHandler.isInDoubleTapShiftKeyTimeout();
|
return mKeyTimerHandler.isInDoubleTapShiftKeyTimeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean dispatchTouchEvent(MotionEvent event) {
|
|
||||||
if (AccessibilityUtils.getInstance().isTouchExplorationEnabled()) {
|
|
||||||
return AccessibleKeyboardViewProxy.getInstance().dispatchTouchEvent(event);
|
|
||||||
}
|
|
||||||
return super.dispatchTouchEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouchEvent(final MotionEvent me) {
|
public boolean onTouchEvent(final MotionEvent me) {
|
||||||
if (getKeyboard() == null) {
|
if (getKeyboard() == null) {
|
||||||
|
|
Loading…
Reference in New Issue