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

Commit d24cb579 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android Git Automerger
Browse files

am e167265f: am 4a0af2cb: am 291ef1c9: Merge "Clear the cache of subtypes in...

am e167265f: am 4a0af2cb: am 291ef1c9: Merge "Clear the cache of subtypes in onStartInputViewInternal"

* commit 'e167265f':
  Clear the cache of subtypes in onStartInputViewInternal
parents e1e95fd2 e167265f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -808,6 +808,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    @SuppressWarnings("deprecation")
    private void onStartInputViewInternal(final EditorInfo editorInfo, final boolean restarting) {
        super.onStartInputView(editorInfo, restarting);
        mRichImm.clearSubtypeCaches();
        final KeyboardSwitcher switcher = mKeyboardSwitcher;
        final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView();
        // If we are starting input in a different text field from before, we'll have to reload
@@ -1049,7 +1050,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        // Should do the following in onFinishInputInternal but until JB MR2 it's not called :(
        if (mWordComposer.isComposingWord()) mConnection.finishComposingText();
        resetComposingState(true /* alsoResetLastComposedWord */);
        mRichImm.clearSubtypeCaches();
        // Notify ResearchLogger
        if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {
            ResearchLogger.latinIME_onFinishInputViewInternal(finishingInput, mLastSelectionStart,