mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 07:22:45 +00:00
emojis are added to history only when next word prediction is enabled
This commit is contained in:
parent
b07f4bb489
commit
f8f7444b74
1 changed files with 1 additions and 1 deletions
|
@ -875,7 +875,7 @@ public final class InputLogic {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue