Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a454a7b8 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Add method to clear user history dictionary for testing

This change should be checked in together with I19cd689157.

Bug: 12179576
Change-Id: I5cc9f52a37ad6623809a14575f3f4b1cd18725c3
parent 005d2454
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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() {