am ddee4914: Merge "Move dictionary facilitator handling."

* commit 'ddee491450bd4447d1dcf102f472fe7038cbfb1d':
  Move dictionary facilitator handling.
main
Chieu Nguyen 2015-03-02 23:34:01 +00:00 committed by Android Git Automerger
commit c36a0c37b4
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(