From f8f7444b740e6a5f0239aebbd4bda8a83bd5628d Mon Sep 17 00:00:00 2001 From: Helium314 Date: Fri, 20 Oct 2023 18:32:24 +0200 Subject: [PATCH] emojis are added to history only when next word prediction is enabled --- .../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 495248191..6fffa090d 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 @@ -875,7 +875,7 @@ private void handleNonSpecialCharacterEvent(final Event event, private void addToHistoryIfEmoji(final String text, final SettingsValues settingsValues) { if (mLastComposedWord == LastComposedWord.NOT_A_COMPOSED_WORD // we want a last composed word, also to avoid storing consecutive emojis || mWordComposer.isComposingWord() // emoji will be part of the word in this case, better do nothing - || !settingsValues.mAutoCorrectionEnabledPerUserSettings + || !settingsValues.mBigramPredictionEnabled // this is for next word suggestions, so they need to be enabled || settingsValues.mIncognitoModeEnabled // add nothing || !StringUtilsKt.isEmoji(text) // obviously we need an emoji ) return;