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() {