aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-18 21:28:09 +0900
committerSatoshi Kataoka <satok@google.com>2012-05-28 14:34:02 +0900
commitfd53b8cc2b78acd7e33f4dc39cfc2faaea92f0f8 (patch)
treec7b286257dcbad49dea19a3981a43b689daca53c /java/src/com/android/inputmethod/latin/LatinIME.java
parent739ff3cfc4dc9efde0d969d660bccc949c1fd84b (diff)
downloadlatinime-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.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 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) {