commit | a9d28030964c4c99e7292d7dcfc73e1453750bf9 | [log] [tgz] |
---|---|---|
author | Svetoslav Ganov <svetoslavganov@google.com> | Thu May 17 20:00:17 2012 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu May 17 20:00:17 2012 -0700 |
tree | ed7314a427db684fd130070833fa20a911d9225e | |
parent | a26bda7c2f487074ac9ac8c64d98b4df615ea429 [diff] | |
parent | d4f7a26f9257c3b0e41a43a0338ed4bcd3d6bd91 [diff] |
Merge "Fix NPE on HOVER_EXIT event when not touching a key." into jb-dev
diff --git a/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java b/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java index 1b0e488..2623dcc 100644 --- a/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java +++ b/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java
@@ -113,7 +113,7 @@ case MotionEvent.ACTION_HOVER_EXIT: // Make sure we're not getting an EXIT event because the user slid // off the keyboard area, then force a key press. - if (pointInView(x, y)) { + if (pointInView(x, y) && (key != null)) { getAccessibilityNodeProvider().simulateKeyPress(key); } //$FALL-THROUGH$