Move dictionary facilitator handling.

Change-Id: Ibd42982996a36ac52b4c916035491b835f8d14f9
This commit is contained in:
Chieu Nguyen 2015-03-02 11:25:35 -08:00
parent 8b2908066d
commit 0103d75aaf
2 changed files with 4 additions and 6 deletions

View File

@ -34,11 +34,10 @@ public class StatsUtilsManager {
return sInstance;
}
public void onCreate(final Context context) {
public void onCreate(final Context context, final DictionaryFacilitator dictionaryFacilitator) {
}
public void onLoadSettings(final Context context, final SettingsValues settingsValues,
final DictionaryFacilitator dictionaryFacilitator) {
public void onLoadSettings(final Context context, final SettingsValues settingsValues) {
}
public void onStartInputView() {

View File

@ -553,7 +553,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
KeyboardSwitcher.init(this);
AudioAndHapticFeedbackManager.init(this);
AccessibilityUtils.init(this);
mStatsUtilsManager.onCreate(this /* context */);
mStatsUtilsManager.onCreate(this /* context */, mDictionaryFacilitator);
super.onCreate();
mHandler.onCreate();
@ -606,8 +606,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
refreshPersonalizationDictionarySession(currentSettingsValues);
resetDictionaryFacilitatorIfNecessary();
mStatsUtilsManager.onLoadSettings(this /* context */, currentSettingsValues,
mDictionaryFacilitator);
mStatsUtilsManager.onLoadSettings(this /* context */, currentSettingsValues);
}
private void refreshPersonalizationDictionarySession(