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

Commit 5b5e877e authored by Jean Chalard's avatar Jean Chalard
Browse files

[IL94] Remove a function and some reordering

Bug: 8636060
Change-Id: I4baa237c9c7b58a8eb4158c34b9d3f3dfb95c69c
parent 37e1cc93
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1330,15 +1330,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen

    // TODO[IL]: Define a clear interface for this
    public void setSuggestedWords(final SuggestedWords words) {
        mInputLogic.mSuggestedWords = words;
        if (mSuggestionStripView != null) {
            mSuggestionStripView.setSuggestions(words);
            mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect);
        }
        setAutoCorrectionIndicator(words.mWillAutoCorrect);
    }

    private void setAutoCorrectionIndicator(final boolean newAutoCorrectionIndicator) {
        mInputLogic.mSuggestedWords = words;
        final boolean newAutoCorrectionIndicator = words.mWillAutoCorrect;
        // Put a blue underline to a word in TextView which will be auto-corrected.
        if (mInputLogic.mIsAutoCorrectionIndicatorOn != newAutoCorrectionIndicator
                && mInputLogic.mWordComposer.isComposingWord()) {