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

Commit b0045c06 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android Git Automerger
Browse files

am 6484a4f8: Consolidate onDictionaryClosed

* commit '6484a4f8':
  Consolidate onDictionaryClosed
parents 86bd99f5 6484a4f8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -31,5 +31,4 @@ public class PersonalizationDictionarySessionRegister {

    public static void onRemoveData(Context context, String type) {
    }

}
+5 −3
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.inputmethod.latin.personalization;

import android.content.Context;

import java.lang.ref.WeakReference;
import java.util.ArrayList;

@@ -48,7 +50,7 @@ public abstract class PersonalizationDictionaryUpdateSession {

    public abstract void onDictionaryReady();

    public abstract void onDictionaryClosed();
    public abstract void onDictionaryClosed(Context context);

    public void setPredictionDictionary(String locale, DynamicPredictionDictionaryBase dictionary) {
        mPredictionDictionary = new WeakReference<DynamicPredictionDictionaryBase>(dictionary);
@@ -68,9 +70,9 @@ public abstract class PersonalizationDictionaryUpdateSession {
    }


    public void closeSession() {
    public void closeSession(Context context) {
        unsetPredictionDictionary();
        onDictionaryClosed();
        onDictionaryClosed(context);
    }

    public void addBigramToPersonalizationDictionary(String word0, String word1, boolean isValid,