mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-08 23:57:41 +00:00
Drop non-emoji single character suggestions from emoji dictionary (#1643)
This commit is contained in:
parent
37821ff8ad
commit
92b1907c61
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,6 @@ import java.util.Locale
|
|||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.CountDownLatch
|
||||
import java.util.concurrent.TimeUnit
|
||||
import kotlin.concurrent.Volatile
|
||||
|
||||
/**
|
||||
* Facilitates interaction with different kinds of dictionaries. Provides APIs
|
||||
|
@ -527,6 +526,10 @@ class DictionaryFacilitatorImpl : DictionaryFacilitator {
|
|||
&& !dictionary.isInDictionary(word)
|
||||
)
|
||||
continue
|
||||
|
||||
if (word.length == 1 && info.mSourceDict.mDictType == "emoji" && !StringUtils.mightBeEmoji(word[0].code))
|
||||
continue
|
||||
|
||||
suggestions.add(info)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue