Don't report 1-char words as typos
Bug: 5281875 Change-Id: If6b6d057e18390bf01dcd31c46104b6856fbdbda
This commit is contained in:
parent
ea843f2a24
commit
63e55cd55e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue