Skip to content

Commit

Permalink
emojis are added to history only when next word prediction is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium314 committed Oct 20, 2023
1 parent b07f4bb commit f8f7444
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8f7444

Please sign in to comment.