diff options
author | 2012-05-18 21:28:09 +0900 | |
---|---|---|
committer | 2012-05-28 14:34:02 +0900 | |
commit | fd53b8cc2b78acd7e33f4dc39cfc2faaea92f0f8 (patch) | |
tree | c7b286257dcbad49dea19a3981a43b689daca53c /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 739ff3cfc4dc9efde0d969d660bccc949c1fd84b (diff) | |
download | latinime-fd53b8cc2b78acd7e33f4dc39cfc2faaea92f0f8.tar.gz latinime-fd53b8cc2b78acd7e33f4dc39cfc2faaea92f0f8.tar.xz latinime-fd53b8cc2b78acd7e33f4dc39cfc2faaea92f0f8.zip |
Forget user history
Bug: 4192129
Change-Id: Ic98398e5383093a1c24373849eadc48fc4d3626f
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index c58549497..e9117e29a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -494,7 +494,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen resetContactsDictionary(oldContactsDictionary); mUserHistoryDictionary = new UserHistoryDictionary( - this, localeStr, Suggest.DIC_USER_HISTORY); + this, localeStr, Suggest.DIC_USER_HISTORY, mPrefs); mSuggest.setUserHistoryDictionary(mUserHistoryDictionary); } @@ -745,7 +745,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen KeyboardView inputView = mKeyboardSwitcher.getKeyboardView(); if (inputView != null) inputView.closing(); - if (mUserHistoryDictionary != null) mUserHistoryDictionary.flushPendingWrites(); } private void onFinishInputViewInternal(boolean finishingInput) { |