Disable transformer swipe typing

This commit is contained in:
Aleksandras Kostarevas 2024-04-18 17:12:41 -05:00
parent 10a8be824b
commit cdb0bed56a
2 changed files with 12 additions and 0 deletions

View File

@ -194,6 +194,12 @@ class LanguageModel(
return@withContext null
}
// Disable gesture for now
if(composedData.mIsBatchMode) {
return@withContext null
}
var composeInfo = getComposeInfo(composedData, keyDetector)
var context = getContext(composeInfo, ngramContext)

View File

@ -251,6 +251,12 @@ public class LanguageModelFacilitator(
holder.get(null, Constants.GET_SUGGESTED_WORDS_TIMEOUT.toLong())?.let { results ->
job.cancel()
inputLogic.mSuggestionStripViewAccessor.showSuggestionStrip(results)
if(values.composedData.mIsBatchMode) {
inputLogic.showBatchSuggestions(results, values.inputStyle == SuggestedWords.INPUT_STYLE_TAIL_BATCH);
}
sequenceIdFinishedFlow.emit(values.sequenceId)
}
return
}