From 2b69244555af209b52181777cdd751cbb543bd93 Mon Sep 17 00:00:00 2001 From: Jatin Matani Date: Mon, 1 Dec 2014 11:38:52 -0800 Subject: [PATCH] [2]Pass context to StatsUtilsManager for alarms. Change corresponding to ag/605384 Bug:16553957 Change-Id: I77024957b9497c45296bbbb24ca972b26348a8c3 --- .../android/inputmethod/latin/utils/StatsUtilsManager.java | 4 ++-- java/src/com/android/inputmethod/latin/LatinIME.java | 4 ++-- 2 files changed, 4 insertions(+), 4 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 c99dbf6a1..1587c631d 100644 --- a/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java +++ b/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java @@ -36,7 +36,7 @@ public class StatsUtilsManager { public void onCreate(final Context context) { } - public void onLoadSettings(final SettingsValues settingsValues) { + public void onLoadSettings(final Context context, final SettingsValues settingsValues) { } public void onStartInputView() { @@ -45,6 +45,6 @@ public class StatsUtilsManager { public void onFinishInputView() { } - public void onDestroy() { + public void onDestroy(final Context context) { } } diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 1525a9264..25a7d9f8a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -638,8 +638,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mDictionaryFacilitator.updateEnabledSubtypes(mRichImm.getMyEnabledInputMethodSubtypeList( true /* allowsImplicitlySelectedSubtypes */)); refreshPersonalizationDictionarySession(currentSettingsValues); - mStatsUtilsManager.onLoadSettings(currentSettingsValues); resetDictionaryFacilitatorIfNecessary(); + mStatsUtilsManager.onLoadSettings(this /* context */, currentSettingsValues); } private void refreshPersonalizationDictionarySession( @@ -739,7 +739,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen unregisterReceiver(mRingerModeChangeReceiver); unregisterReceiver(mDictionaryPackInstallReceiver); unregisterReceiver(mDictionaryDumpBroadcastReceiver); - mStatsUtilsManager.onDestroy(); + mStatsUtilsManager.onDestroy(this /* context */); DictionaryDecayBroadcastReciever.cancelIntervalAlarmForDictionaryDecaying(this); super.onDestroy(); }