mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Do not learn from cursor corrections when autocorrection is disabled.
Bug: 20681528 Change-Id: I80e7095b70a151f3ccc36856d7e0837613a35972
This commit is contained in:
parent
459b4f353e
commit
89f9070264
@ -398,9 +398,8 @@ public final class InputLogic {
|
||||
if (!TextUtils.isEmpty(mWordBeingCorrectedByCursor)) {
|
||||
final int timeStampInSeconds = (int)TimeUnit.MILLISECONDS.toSeconds(
|
||||
System.currentTimeMillis());
|
||||
mDictionaryFacilitator.addToUserHistory(mWordBeingCorrectedByCursor, false,
|
||||
NgramContext.EMPTY_PREV_WORDS_INFO, timeStampInSeconds,
|
||||
settingsValues.mBlockPotentiallyOffensive);
|
||||
performAdditionToUserHistoryDictionary(settingsValues, mWordBeingCorrectedByCursor,
|
||||
NgramContext.EMPTY_PREV_WORDS_INFO);
|
||||
}
|
||||
} else {
|
||||
// resetEntireInputState calls resetCachesUponCursorMove, but forcing the
|
||||
|
Loading…
Reference in New Issue
Block a user