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

Commit eaa7efd1 authored by Jean Chalard's avatar Jean Chalard
Browse files

[ML29] Reinitialize the subtype at input start

Bug: 11230254
Bug: 17994347
Change-Id: I3476909c4b371d6e94a0d4c35d91e109d639b8d5
parent 544da4a2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -857,6 +857,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        // also wouldn't be consuming gesture data.
        mGestureConsumer = GestureConsumer.NULL_GESTURE_CONSUMER;
        mRichImm.clearSubtypeCaches();
        mSubtypeSwitcher.refreshSubtypeInfo();
        final KeyboardSwitcher switcher = mKeyboardSwitcher;
        switcher.updateKeyboardTheme();
        final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView();
+5 −1
Original line number Diff line number Diff line
@@ -117,10 +117,14 @@ public final class SubtypeSwitcher {
        final NetworkInfo info = connectivityManager.getActiveNetworkInfo();
        mIsNetworkConnected = (info != null && info.isConnected());

        onSubtypeChanged(mRichImm.getCurrentRawSubtype());
        refreshSubtypeInfo();
        updateParametersOnStartInputView();
    }

    public void refreshSubtypeInfo() {
        onSubtypeChanged(mRichImm.getCurrentRawSubtype());
    }

    /**
     * Update parameters which are changed outside LatinIME. This parameters affect UI so that they
     * should be updated every time onStartInputView is called.