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

Commit 1dd7e534 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

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

Change-Id: I63f78227a3a80c5fdb97b1d5d8d6c595a70e1990
parent 1c6ac4eb
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -183,7 +183,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 |
@@ -195,7 +194,6 @@ public class SpellChecker implements SpellCheckerSessionListener {
                        // TODO limit to the word rectangle region
                        mTextView.invalidate();
                    }
                    }
                    editable.removeSpan(spellCheckSpan);
                }
            }