Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adbb979b authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Fix possible NPE in KeyboardSwitcher

Bug: 10964306
Change-Id: Ibcea76da746f6cac92c8d91425d25d04ade62af0
parent 5f8eba02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() {