Fix possible NPE in KeyboardSwitcher

Bug: 10964306
Change-Id: Ibcea76da746f6cac92c8d91425d25d04ade62af0
main
Satoshi Kataoka 2013-09-28 01:19:18 +09:00
parent 5f8eba02d0
commit adbb979b56
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
} }
public boolean isShowingEmojiKeyboard() { public boolean isShowingEmojiKeyboard() {
return mEmojiKeyboardView.getVisibility() == View.VISIBLE; return mEmojiKeyboardView != null && mEmojiKeyboardView.getVisibility() == View.VISIBLE;
} }
public boolean isShowingMoreKeysPanel() { public boolean isShowingMoreKeysPanel() {