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

Commit 362ab36c authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Fix a null object reference crash on Emoji Palette

Do nothing if the current EmojiPageKeyboardView is null.

BUG: 13006906
Change-Id: I169b70122ec939075b5be033953b48762fd528fc
parent 5f9f4b92
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -724,8 +724,10 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
            // canceled.
            final EmojiPageKeyboardView currentKeyboardView =
                    mActiveKeyboardViews.get(mActivePosition);
            if (currentKeyboardView != null) {
                currentKeyboardView.releaseCurrentKey();
            }
        }

        @Override
        public int getCount() {