Move dictionary facilitator handling.
Change-Id: Ibd42982996a36ac52b4c916035491b835f8d14f9
This commit is contained in:
parent
8b2908066d
commit
0103d75aaf
2 changed files with 4 additions and 6 deletions
|
@ -34,11 +34,10 @@ public class StatsUtilsManager {
|
||||||
return sInstance;
|
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,
|
public void onLoadSettings(final Context context, final SettingsValues settingsValues) {
|
||||||
final DictionaryFacilitator dictionaryFacilitator) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onStartInputView() {
|
public void onStartInputView() {
|
||||||
|
|
|
@ -553,7 +553,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
KeyboardSwitcher.init(this);
|
KeyboardSwitcher.init(this);
|
||||||
AudioAndHapticFeedbackManager.init(this);
|
AudioAndHapticFeedbackManager.init(this);
|
||||||
AccessibilityUtils.init(this);
|
AccessibilityUtils.init(this);
|
||||||
mStatsUtilsManager.onCreate(this /* context */);
|
mStatsUtilsManager.onCreate(this /* context */, mDictionaryFacilitator);
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|
||||||
mHandler.onCreate();
|
mHandler.onCreate();
|
||||||
|
@ -606,8 +606,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
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 a new issue