fix addition of emojis to history

This commit is contained in:
Helium314 2023-12-11 11:18:19 +01:00
parent ca73709a7d
commit 6e6bbbd0da

View file

@ -876,7 +876,7 @@ public final class InputLogic {
|| mWordComposer.isComposingWord() // emoji will be part of the word in this case, better do nothing || mWordComposer.isComposingWord() // emoji will be part of the word in this case, better do nothing
|| !settingsValues.mBigramPredictionEnabled // this is only for next word suggestions, so they need to be enabled || !settingsValues.mBigramPredictionEnabled // this is only for next word suggestions, so they need to be enabled
|| settingsValues.mIncognitoModeEnabled || settingsValues.mIncognitoModeEnabled
|| settingsValues.mInputAttributes.mShouldShowSuggestions // see comment in performAdditionToUserHistoryDictionary || !settingsValues.mInputAttributes.mShouldShowSuggestions // see comment in performAdditionToUserHistoryDictionary
|| !StringUtilsKt.isEmoji(text) || !StringUtilsKt.isEmoji(text)
) return; ) return;
if (mConnection.hasSlowInputConnection()) { if (mConnection.hasSlowInputConnection()) {