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

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

Merge "Don't report 1-char words as typos"

parents 94f73000 63e55cd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
                final int suggestionsLimit) {
            final String text = textInfo.getText();

            if (TextUtils.isEmpty(text)) return EMPTY_SUGGESTIONS_INFO;
            if (TextUtils.isEmpty(text) || text.length() <= 1) return EMPTY_SUGGESTIONS_INFO;

            final SuggestionsGatherer suggestionsGatherer =
                    new SuggestionsGatherer(suggestionsLimit);