aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-27 23:03:46 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-27 23:03:46 -0700
commit1c6994268382ea6732b4b4541fa4da715096cf12 (patch)
tree3dbc4bb9b2458155e00ee4c61275ba65839ec976 /java/src/com/android/inputmethod/latin/LatinIME.java
parent1a31b4e484e33cdeba8676b09a7afc9738d1f027 (diff)
parentfff5cd6f767e248ecb5b30ea39cb9a22a476b953 (diff)
downloadlatinime-1c6994268382ea6732b4b4541fa4da715096cf12.tar.gz
latinime-1c6994268382ea6732b4b4541fa4da715096cf12.tar.xz
latinime-1c6994268382ea6732b4b4541fa4da715096cf12.zip
am fff5cd6f: am aa064139: Merge "Forget user history" into jb-dev
* commit 'fff5cd6f767e248ecb5b30ea39cb9a22a476b953': Forget user history
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
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 5a2681299..f38b4141a 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -496,7 +496,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);
}
@@ -755,7 +755,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) {