From 6e6bbbd0daf76403818a47befca2f52e6258731c Mon Sep 17 00:00:00 2001 From: Helium314 Date: Mon, 11 Dec 2023 11:18:19 +0100 Subject: [PATCH] fix addition of emojis to history --- .../openboard/inputmethod/latin/inputlogic/InputLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/dslul/openboard/inputmethod/latin/inputlogic/InputLogic.java b/app/src/main/java/org/dslul/openboard/inputmethod/latin/inputlogic/InputLogic.java index f2b22abc0..757698404 100644 --- a/app/src/main/java/org/dslul/openboard/inputmethod/latin/inputlogic/InputLogic.java +++ b/app/src/main/java/org/dslul/openboard/inputmethod/latin/inputlogic/InputLogic.java @@ -876,7 +876,7 @@ private void addToHistoryIfEmoji(final String text, final SettingsValues setting || 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.mIncognitoModeEnabled - || settingsValues.mInputAttributes.mShouldShowSuggestions // see comment in performAdditionToUserHistoryDictionary + || !settingsValues.mInputAttributes.mShouldShowSuggestions // see comment in performAdditionToUserHistoryDictionary || !StringUtilsKt.isEmoji(text) ) return; if (mConnection.hasSlowInputConnection()) {