mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix a crash with long words
This commit is contained in:
parent
13f81556ad
commit
b935db017c
@ -18,6 +18,7 @@ import kotlinx.coroutines.sync.Semaphore
|
||||
import kotlinx.coroutines.withContext
|
||||
import kotlinx.coroutines.withTimeout
|
||||
import org.futo.inputmethod.keyboard.KeyboardSwitcher
|
||||
import org.futo.inputmethod.latin.BinaryDictionary
|
||||
import org.futo.inputmethod.latin.DictionaryFacilitator
|
||||
import org.futo.inputmethod.latin.NgramContext
|
||||
import org.futo.inputmethod.latin.Suggest
|
||||
@ -238,6 +239,10 @@ public class LanguageModelFacilitator(
|
||||
|
||||
inputLogic.mWordComposer.setAutoCorrection(null)
|
||||
|
||||
if(values.composedData.mTypedWord.length > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH) {
|
||||
inputLogic.mSuggestionStripViewAccessor.setNeutralSuggestionStrip()
|
||||
}
|
||||
|
||||
try {
|
||||
var transformerWeight = context.getSetting(BinaryDictTransformerWeightSetting)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user