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

Commit 9fb46925 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Bug 5384535: Underline for typo even if there are no suggestions"

parents 5b92a451 1dd7e534
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -185,7 +185,6 @@ public class SpellChecker implements SpellCheckerSessionListener {

                    if (!isInDictionary && looksLikeTypo) {
                        String[] suggestions = getSuggestions(suggestionsInfo);
                        if (suggestions.length > 0) {
                        SuggestionSpan suggestionSpan = new SuggestionSpan(
                                mTextView.getContext(), suggestions,
                                SuggestionSpan.FLAG_EASY_CORRECT |
@@ -197,7 +196,6 @@ public class SpellChecker implements SpellCheckerSessionListener {
                        // TODO limit to the word rectangle region
                        mTextView.invalidate();
                    }
                    }
                    editable.removeSpan(spellCheckSpan);
                }
            }