Do not learn from cursor corrections when autocorrection is disabled.
Bug: 20681528 Change-Id: I80e7095b70a151f3ccc36856d7e0837613a35972main
parent
459b4f353e
commit
89f9070264
|
@ -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…
Reference in New Issue