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

Commit ef375588 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix possible NPE in SubtypeSwitcher

Bug: 18299267
Change-Id: I0403fe8537f7a10f4af121d1e88ed029e69aa494
parent 44a1e49d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -122,7 +122,10 @@ public final class SubtypeSwitcher {
    }

    public void refreshSubtypeInfo() {
        onSubtypeChanged(mRichImm.getCurrentRawSubtype());
        final InputMethodSubtype subtype = mRichImm.getCurrentRawSubtype();
        if (subtype != null) {
            onSubtypeChanged(subtype);
        }
    }

    /**