aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-01-29 12:00:33 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-01-29 12:01:37 +0900
commita454a7b85c513fb7b38e70e4e199958e0060c667 (patch)
treec4f2472b9759c4a3db4f0a326c5ecf6e93119a95
parent005d2454c97400bef3da7961267fe6b943da5833 (diff)
downloadlatinime-a454a7b85c513fb7b38e70e4e199958e0060c667.tar.gz
latinime-a454a7b85c513fb7b38e70e4e199958e0060c667.tar.xz
latinime-a454a7b85c513fb7b38e70e4e199958e0060c667.zip
Add method to clear user history dictionary for testing
This change should be checked in together with I19cd689157. Bug: 12179576 Change-Id: I5cc9f52a37ad6623809a14575f3f4b1cd18725c3
-rw-r--r--java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java
index 8a8a45f35..8b02984e0 100644
--- a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java
+++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java
@@ -505,6 +505,14 @@ public class DictionaryFacilitatorForSuggest {
}
}
+ @UsedForTesting
+ public void clearUserHistoryDictionary() {
+ if (mUserHistoryDictionary == null) {
+ return;
+ }
+ mUserHistoryDictionary.clearAndFlushDictionary();
+ }
+
// This method gets called only when the IME receives a notification to remove the
// personalization dictionary.
public void clearPersonalizationDictionary() {