mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Don't report 1-char words as typos"
This commit is contained in:
commit
14c840fb27
@ -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…
x
Reference in New Issue
Block a user