[3]Ping dictionary stats:Pass DictionaryFacilitator
Pass dictionaryFacilitator to StatsUtilsManager from LatinIME Bug:16553957 Change-Id: I912a0b447e5684909ff67e3653a4bd8649cd03c5main
parent
20469a8779
commit
3e35b8712c
|
@ -19,6 +19,7 @@ package com.android.inputmethod.latin.utils;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
import com.android.inputmethod.latin.DictionaryFacilitator;
|
||||||
import com.android.inputmethod.latin.settings.SettingsValues;
|
import com.android.inputmethod.latin.settings.SettingsValues;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
@ -36,7 +37,8 @@ public class StatsUtilsManager {
|
||||||
public void onCreate(final Context context) {
|
public void onCreate(final Context context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onLoadSettings(final Context context, final SettingsValues settingsValues) {
|
public void onLoadSettings(final Context context, final SettingsValues settingsValues,
|
||||||
|
final DictionaryFacilitator dictionaryFacilitator) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onStartInputView() {
|
public void onStartInputView() {
|
||||||
|
|
|
@ -636,7 +636,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
true /* allowsImplicitlySelectedSubtypes */));
|
true /* allowsImplicitlySelectedSubtypes */));
|
||||||
refreshPersonalizationDictionarySession(currentSettingsValues);
|
refreshPersonalizationDictionarySession(currentSettingsValues);
|
||||||
resetDictionaryFacilitatorIfNecessary();
|
resetDictionaryFacilitatorIfNecessary();
|
||||||
mStatsUtilsManager.onLoadSettings(this /* context */, currentSettingsValues);
|
mStatsUtilsManager.onLoadSettings(this /* context */, currentSettingsValues,
|
||||||
|
mDictionaryFacilitator);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshPersonalizationDictionarySession(
|
private void refreshPersonalizationDictionarySession(
|
||||||
|
|
Loading…
Reference in New Issue