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

Commit bd81c3fe authored by satok's avatar satok
Browse files

Fix null pointer exception

Bug: 3250622

Change-Id: I0913f10c7deb984d2b1a51701dddf765a060592e
parent 1921eab4
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -175,12 +175,14 @@ public class InputMethodButton extends ImageView {
                icon = getShortcutInputMethodAndSubtypeDrawable();
                break;
        }
        if (mIcon != null) {
            if (icon == null) {
                mIcon.setImageResource(R.drawable.ic_sysbar_ime_default);
            } else {
                mIcon.setImageDrawable(icon);
            }
        }
    }

    public void setIMEButtonVisible(IBinder token, boolean visible) {
        mToken = token;