mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Avoid null dereference on accessibility morekeys
This commit is contained in:
parent
c1b31987d3
commit
60bc8a2d1d
@ -214,7 +214,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
|
||||
if (newKey == oldKey) {
|
||||
return newKey;
|
||||
} else {
|
||||
if(mAccessibilityDelegate != null && AccessibilityUtils.getInstance().isAccessibilityEnabled()) {
|
||||
if(mAccessibilityDelegate != null && AccessibilityUtils.getInstance().isAccessibilityEnabled() && newKey != null) {
|
||||
mAccessibilityDelegate.onKeyHovered(newKey);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user