mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE
Change-Id: I35efd1d6c8c2b48d93675d014d5c7aef7d12ed58
This commit is contained in:
parent
56a6c8dc22
commit
e218baa6cc
@ -615,7 +615,7 @@ public class PointerTracker {
|
|||||||
// The modifier key, such as shift key, should not show its key preview.
|
// The modifier key, such as shift key, should not show its key preview.
|
||||||
private boolean isKeyPreviewNotRequired(int keyIndex) {
|
private boolean isKeyPreviewNotRequired(int keyIndex) {
|
||||||
final Key key = getKey(keyIndex);
|
final Key key = getKey(keyIndex);
|
||||||
if (!key.mEnabled)
|
if (key == null || !key.mEnabled)
|
||||||
return true;
|
return true;
|
||||||
// Such as spacebar sliding language switch.
|
// Such as spacebar sliding language switch.
|
||||||
if (mKeyboard.needSpacebarPreview(keyIndex))
|
if (mKeyboard.needSpacebarPreview(keyIndex))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user