* commit '29948e7a194f7aff786120542d2da7f042c86ea5': Fix NPE on HOVER_EXIT event when not touching a key.
This commit is contained in:
commit
7e948da1d1
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ public class AccessibleKeyboardViewProxy extends AccessibilityDelegateCompat {
|
||||||
case MotionEvent.ACTION_HOVER_EXIT:
|
case MotionEvent.ACTION_HOVER_EXIT:
|
||||||
// Make sure we're not getting an EXIT event because the user slid
|
// Make sure we're not getting an EXIT event because the user slid
|
||||||
// off the keyboard area, then force a key press.
|
// off the keyboard area, then force a key press.
|
||||||
if (pointInView(x, y)) {
|
if (pointInView(x, y) && (key != null)) {
|
||||||
getAccessibilityNodeProvider().simulateKeyPress(key);
|
getAccessibilityNodeProvider().simulateKeyPress(key);
|
||||||
}
|
}
|
||||||
//$FALL-THROUGH$
|
//$FALL-THROUGH$
|
||||||
|
|
Loading…
Reference in a new issue