Fix NPE when pressing ALT key
Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418main
parent
5e7a6fe098
commit
ad1f880811
|
@ -261,6 +261,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
|||
}
|
||||
|
||||
public void onToggleEmojiKeyboard() {
|
||||
if (mKeyboardLayoutSet == null) {
|
||||
return;
|
||||
}
|
||||
if (isShowingEmojiPalettes()) {
|
||||
setAlphabetKeyboard();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue