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

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

Merge "Have empty suggestions go through setNeutralSuggestions."

parents 38f341a2 2cbf1529
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1408,10 +1408,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            // because it may differ from mWordComposer.mTypedWord.
            autoCorrection = sourceSuggestedWords.mTypedWord;
        }
        if (SuggestedWords.EMPTY != suggestedWords) {
        if (SuggestedWords.EMPTY == suggestedWords) {
            setNeutralSuggestionStrip();
        } else {
            mInputLogic.mWordComposer.setAutoCorrection(autoCorrection);
        }
            setSuggestedWords(suggestedWords, isSuggestionsStripVisible());
        }
        // Cache the auto-correction in accessibility code so we can speak it if the user
        // touches a key that will insert it.
        AccessibilityUtils.getInstance().setAutoCorrection(suggestedWords,