Reduce max typed word length

This commit is contained in:
Aleksandras Kostarevas 2024-09-27 18:50:35 +03:00
parent da95c69668
commit 1c9c94b83d

View File

@ -240,7 +240,7 @@ public class LanguageModelFacilitator(
try {
inputLogic.mWordComposer.setAutoCorrection(null)
if(values.composedData.mTypedWord.length > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH) {
if(values.composedData.mTypedWord.length > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH-1) {
inputLogic.mSuggestionStripViewAccessor.setNeutralSuggestionStrip()
return
}