aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java
diff options
context:
space:
mode:
authorCharles Chen <clchen@google.com>2012-09-12 15:15:06 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-12 15:15:06 -0700
commit93e97d1bc86a1d4f0fc9b20b61068ebe8374751e (patch)
treeb15ab4fd0ed786d001f5aa8b1bd957de7ad14197 /java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java
parent40794c90b5c4b9fd1d9bf915feb04b78f55b3200 (diff)
parent6e52f164e6c7f5ed4f374d79b45a5665ee3d263b (diff)
downloadlatinime-93e97d1bc86a1d4f0fc9b20b61068ebe8374751e.tar.gz
latinime-93e97d1bc86a1d4f0fc9b20b61068ebe8374751e.tar.xz
latinime-93e97d1bc86a1d4f0fc9b20b61068ebe8374751e.zip
am 6e52f164: am 655be140: Merge "When Accessibility is on, intercept touch events during dispatch." into jb-mr1-dev
* commit '6e52f164e6c7f5ed4f374d79b45a5665ee3d263b': When Accessibility is on, intercept touch events during dispatch.
Diffstat (limited to 'java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java')
-rw-r--r--java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java b/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java
index 77940c086..01220a58a 100644
--- a/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java
+++ b/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java
@@ -105,15 +105,15 @@ public class AccessibleKeyboardViewProxy extends AccessibilityDelegateCompat {
}
/**
- * Receives motion events when touch exploration is turned on in SDK
- * versions ICS and higher.
+ * Intercepts touch events before dispatch when touch exploration is turned
+ * on in ICS and higher.
*
- * @param event The motion event.
+ * @param event The motion event being dispatched.
* @return {@code true} if the event is handled
*/
- public boolean onTouchEvent(MotionEvent event) {
+ public boolean dispatchTouchEvent(MotionEvent event) {
// To avoid accidental key presses during touch exploration, always drop
- // non-hover touch events.
+ // touch events generated by the user.
return false;
}