remove logic for numbers, instead using includeDigit (#278)
Co-authored-by: Alex Knop <alexknoptech@protonmail.com>
This commit is contained in:
parent
4aa11b9501
commit
ada5b48b9c
1 changed files with 1 additions and 8 deletions
|
|
@ -194,14 +194,7 @@ public class DictionaryLoader {
|
||||||
ArrayList<Word> letters = new ArrayList<>();
|
ArrayList<Word> letters = new ArrayList<>();
|
||||||
|
|
||||||
for (int key = 2; key <= 9; key++) {
|
for (int key = 2; key <= 9; key++) {
|
||||||
for (String langChar : language.getKeyCharacters(key)) {
|
for (String langChar : language.getKeyCharacters(key, false)) {
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (DictionaryDb.doesWordExistSync(language, langChar.toUpperCase(language.getLocale()))) {
|
if (DictionaryDb.doesWordExistSync(language, langChar.toUpperCase(language.getLocale()))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue