diff options
author | 2015-05-01 00:00:41 +0000 | |
---|---|---|
committer | 2015-05-01 00:00:41 +0000 | |
commit | 18d7291c602a4e2865ee635697f55b3c9166b68e (patch) | |
tree | aeae942a7f574739d221d5bff852da3e81ca73ff /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | e991c34297c1367583493ecd7d73f0c042ec37d7 (diff) | |
parent | 89f907026434a4906ed46b83452f76424711dde8 (diff) | |
download | latinime-18d7291c602a4e2865ee635697f55b3c9166b68e.tar.gz latinime-18d7291c602a4e2865ee635697f55b3c9166b68e.tar.xz latinime-18d7291c602a4e2865ee635697f55b3c9166b68e.zip |
am 89f90702: Do not learn from cursor corrections when autocorrection is disabled.
* commit '89f907026434a4906ed46b83452f76424711dde8':
Do not learn from cursor corrections when autocorrection is disabled.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index f7dbc0a4d..975ed7c01 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -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 |