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

Commit 45c57dcc authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Fix SubtypeSwitcher incomplete initialization" into jb-dev

parents 27b42ced 3d407cc0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -182,12 +182,13 @@ public class SubtypeSwitcher {
                    + newSubtype.getLocale() + "/" + newSubtype.getExtraValue() + ", from: "
                    + mCurrentSubtype.getLocale() + "/" + mCurrentSubtype.getExtraValue());
        }
        if (newSubtype.equals(mCurrentSubtype)) return;

        final Locale newLocale = SubtypeLocale.getSubtypeLocale(newSubtype);
        mNeedsToDisplayLanguage.updateIsSystemLanguageSameAsInputLanguage(
                mCurrentSystemLocale.equals(newLocale));

        if (newSubtype.equals(mCurrentSubtype)) return;

        mCurrentSubtype = newSubtype;
        updateShortcutIME();
        mService.onRefreshKeyboard();