From 0103d75aaf0472051147b047fc68fe8ae6881de5 Mon Sep 17 00:00:00 2001 From: Chieu Nguyen Date: Mon, 2 Mar 2015 11:25:35 -0800 Subject: [PATCH] Move dictionary facilitator handling. Change-Id: Ibd42982996a36ac52b4c916035491b835f8d14f9 --- .../android/inputmethod/latin/utils/StatsUtilsManager.java | 5 ++--- java/src/com/android/inputmethod/latin/LatinIME.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java b/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java index 74d863a4a..063bc89d0 100644 --- a/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java +++ b/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java @@ -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() { diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 76d4a4a8d..f38b3330f 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -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(