Skip to content
Snippets Groups Projects
Commit 60bc8a2d authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Avoid null dereference on accessibility morekeys

parent c1b31987
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel ...@@ -214,7 +214,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
if (newKey == oldKey) { if (newKey == oldKey) {
return newKey; return newKey;
} else { } else {
if(mAccessibilityDelegate != null && AccessibilityUtils.getInstance().isAccessibilityEnabled()) { if(mAccessibilityDelegate != null && AccessibilityUtils.getInstance().isAccessibilityEnabled() && newKey != null) {
mAccessibilityDelegate.onKeyHovered(newKey); mAccessibilityDelegate.onKeyHovered(newKey);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment