Merge "Fix NPE when pressing ALT key" into lmp-dev

main
Tadashi G. Takaoka 2014-08-25 06:52:36 +00:00 committed by Android (Google) Code Review
commit f145fff085
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() { public void onToggleEmojiKeyboard() {
if (mKeyboardLayoutSet == null) {
return;
}
if (isShowingEmojiPalettes()) { if (isShowingEmojiPalettes()) {
setAlphabetKeyboard(); setAlphabetKeyboard();
} else { } else {