Merge "Fix NPE on HOVER_EXIT event when not touching a key." into jb-dev

This commit is contained in:
Svetoslav Ganov 2012-05-17 20:00:17 -07:00 committed by Android (Google) Code Review
commit a9d2803096

View File

@ -113,7 +113,7 @@ public class AccessibleKeyboardViewProxy extends AccessibilityDelegateCompat {
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$