mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE at Keyboard
Bug: 3250672 Change-Id: Ieef7ff5e8ba77a2d43f561c2bd2a1921230bd49d
This commit is contained in:
parent
a0e780fa4c
commit
566870c0f1
@ -366,15 +366,15 @@ public class Keyboard {
|
||||
}
|
||||
|
||||
public boolean isAlphaKeyboard() {
|
||||
return mId.isAlphabetKeyboard();
|
||||
return mId != null && mId.isAlphabetKeyboard();
|
||||
}
|
||||
|
||||
public boolean isPhoneKeyboard() {
|
||||
return mId.isPhoneKeyboard();
|
||||
return mId != null && mId.isPhoneKeyboard();
|
||||
}
|
||||
|
||||
public boolean isNumberKeyboard() {
|
||||
return mId.isNumberKeyboard();
|
||||
return mId != null && mId.isNumberKeyboard();
|
||||
}
|
||||
|
||||
public void setSpaceKey(Key space) {
|
||||
|
Loading…
Reference in New Issue
Block a user