1
0
Fork 0

remove logic for numbers, instead using includeDigit (#278)

Co-authored-by: Alex Knop <alexknoptech@protonmail.com>
This commit is contained in:
alexknop 2023-06-05 07:05:05 -06:00 committed by GitHub
parent 4aa11b9501
commit ada5b48b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,14 +194,7 @@ public class DictionaryLoader {
ArrayList<Word> letters = new ArrayList<>();
for (int key = 2; key <= 9; key++) {
for (String langChar : language.getKeyCharacters(key)) {
if (langChar.length() == 1 && langChar.charAt(0) >= '0' && langChar.charAt(0) <= '9') {
// We do not want 0-9 as "word suggestions" in Predictive mode. It looks confusing
// when trying to type a word and also, one can type them by holding the respective
// key.
continue;
}
for (String langChar : language.getKeyCharacters(key, false)) {
if (DictionaryDb.doesWordExistSync(language, langChar.toUpperCase(language.getLocale()))) {
continue;
}