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

Commit bd1d7114 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Remove a duplicate method (A36)"

parents 654d5ba1 aba432bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1742,7 +1742,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    public void showSuggestions(final SuggestedWords suggestedWords, final CharSequence typedWord) {
        final CharSequence autoCorrection;
        if (suggestedWords.size() > 0) {
            if (suggestedWords.hasAutoCorrectionWord()) {
            if (suggestedWords.mWillAutoCorrect) {
                autoCorrection = suggestedWords.getWord(1);
            } else {
                autoCorrection = typedWord;
+0 −4
Original line number Diff line number Diff line
@@ -66,10 +66,6 @@ public class SuggestedWords {
        return mSuggestedWordInfoList.get(pos);
    }

    public boolean hasAutoCorrectionWord() {
        return mHasAutoCorrectionCandidate && size() > 1 && !mTypedWordValid;
    }

    public boolean willAutoCorrect() {
        return mWillAutoCorrect;
    }