Fix NPE at Keyboard
Bug: 3250672 Change-Id: Ieef7ff5e8ba77a2d43f561c2bd2a1921230bd49d
This commit is contained in:
parent
a0e780fa4c
commit
566870c0f1
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue