mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-17 11:59:34 +00:00
don't add single letter words with AddToPersonalDictionary setting
fixes GH-1605
This commit is contained in:
parent
83ff9b3345
commit
9cec401e1e
1 changed files with 1 additions and 0 deletions
|
@ -381,6 +381,7 @@ class DictionaryFacilitatorImpl : DictionaryFacilitator {
|
|||
}
|
||||
|
||||
private fun addToPersonalDictionaryIfInvalidButInHistory(word: String) {
|
||||
if (word.length <= 1) return
|
||||
val dictionaryGroup = clearlyPreferredDictionaryGroup ?: return
|
||||
val userDict = dictionaryGroup.getSubDict(Dictionary.TYPE_USER) ?: return
|
||||
val userHistoryDict = dictionaryGroup.getSubDict(Dictionary.TYPE_USER_HISTORY) ?: return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue