Fix NPE when pressing ALT key

Bug: 17203708
Change-Id: I4f203603496e9401dacba4db21372e3353916418
main
Tadashi G. Takaoka 2014-08-25 15:08:27 +09:00
parent 5e7a6fe098
commit ad1f880811
1 changed files with 3 additions and 0 deletions

View File

@ -261,6 +261,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
}
public void onToggleEmojiKeyboard() {
if (mKeyboardLayoutSet == null) {
return;
}
if (isShowingEmojiPalettes()) {
setAlphabetKeyboard();
} else {