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