Merge "Fix NPE at Keyboard"
commit
23bf5e530a
|
@ -366,15 +366,15 @@ public class Keyboard {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAlphaKeyboard() {
|
public boolean isAlphaKeyboard() {
|
||||||
return mId.isAlphabetKeyboard();
|
return mId != null && mId.isAlphabetKeyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPhoneKeyboard() {
|
public boolean isPhoneKeyboard() {
|
||||||
return mId.isPhoneKeyboard();
|
return mId != null && mId.isPhoneKeyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isNumberKeyboard() {
|
public boolean isNumberKeyboard() {
|
||||||
return mId.isNumberKeyboard();
|
return mId != null && mId.isNumberKeyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSpaceKey(Key space) {
|
public void setSpaceKey(Key space) {
|
||||||
|
|
Loading…
Reference in New Issue