am 89f90702: Do not learn from cursor corrections when autocorrection is disabled.

* commit '89f907026434a4906ed46b83452f76424711dde8':
  Do not learn from cursor corrections when autocorrection is disabled.
main
Tom Ouyang 2015-05-01 00:00:41 +00:00 committed by Android Git Automerger
commit 18d7291c60
1 changed files with 2 additions and 3 deletions

View File

@ -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