aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
diff options
context:
space:
mode:
authorBaligh Uddin <baligh@google.com>2015-07-03 16:47:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-03 16:47:23 +0000
commit37d33d3da1627d57ab8daca2951f48739afbcbfb (patch)
tree8461bb8ed67f4a26f95dce86b99cd440cce7b5de /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
parent2c2065a56aa9c4e2971e6fc8ee0b8d0d059695b7 (diff)
parent8ed9bccaf2f670fd34689771d37c4e064da25b57 (diff)
downloadlatinime-37d33d3da1627d57ab8daca2951f48739afbcbfb.tar.gz
latinime-37d33d3da1627d57ab8daca2951f48739afbcbfb.tar.xz
latinime-37d33d3da1627d57ab8daca2951f48739afbcbfb.zip
am 8ed9bcca: am 91886a31: am baec6ce1: Revert reset to ub-latinimegoogle-fava-release
* commit '8ed9bccaf2f670fd34689771d37c4e064da25b57': (240 commits) Don't prompt before downloading. Add some more logging. Why not. Load metadata.json from resources on DB reset. Small optimization to eliminate a >0 check in RichInputConnection. Extend laggy connection timeout for initial load. Fix breakage in tests. LatinIME portion of StatsUtil change. Workaround for preserving responsiveness on a slow InputConnection. Do not decorate committed spans. Do not force downloads on package replace. Fix the previous downloads logic to not missing any downloads. Detection and logging of slow input connections. Clear/remove all the scheduled downloads in Download Manager Disable download notifications. Cleanup before fixing getTextAfterCursor(). Do not restrict downloads to WiFi networks. Import translations. DO NOT MERGE Revert "Remove "Personal dictionary" link from settings." Import translations. DO NOT MERGE Import translations. DO NOT MERGE ...
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r--java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
index 975ed7c01..f7dbc0a4d 100644
--- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
@@ -398,8 +398,9 @@ public final class InputLogic {
if (!TextUtils.isEmpty(mWordBeingCorrectedByCursor)) {
final int timeStampInSeconds = (int)TimeUnit.MILLISECONDS.toSeconds(
System.currentTimeMillis());
- performAdditionToUserHistoryDictionary(settingsValues, mWordBeingCorrectedByCursor,
- NgramContext.EMPTY_PREV_WORDS_INFO);
+ mDictionaryFacilitator.addToUserHistory(mWordBeingCorrectedByCursor, false,
+ NgramContext.EMPTY_PREV_WORDS_INFO, timeStampInSeconds,
+ settingsValues.mBlockPotentiallyOffensive);
}
} else {
// resetEntireInputState calls resetCachesUponCursorMove, but forcing the