Fix NPE when pressing ALT key
Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418
This commit is contained in:
parent
5e7a6fe098
commit
ad1f880811
1 changed files with 3 additions and 0 deletions
|
@ -261,6 +261,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onToggleEmojiKeyboard() {
|
public void onToggleEmojiKeyboard() {
|
||||||
|
if (mKeyboardLayoutSet == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isShowingEmojiPalettes()) {
|
if (isShowingEmojiPalettes()) {
|
||||||
setAlphabetKeyboard();
|
setAlphabetKeyboard();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue