mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix possible NPE in KeyboardSwitcher
Bug: 10964306 Change-Id: Ibcea76da746f6cac92c8d91425d25d04ade62af0
This commit is contained in:
parent
5f8eba02d0
commit
adbb979b56
@ -315,7 +315,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
||||
}
|
||||
|
||||
public boolean isShowingEmojiKeyboard() {
|
||||
return mEmojiKeyboardView.getVisibility() == View.VISIBLE;
|
||||
return mEmojiKeyboardView != null && mEmojiKeyboardView.getVisibility() == View.VISIBLE;
|
||||
}
|
||||
|
||||
public boolean isShowingMoreKeysPanel() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user