Skip to content
Snippets Groups Projects
Commit 2b692445 authored by Jatin Matani's avatar Jatin Matani
Browse files

[2]Pass context to StatsUtilsManager for alarms.

Change corresponding to ag/605384

Bug:16553957

Change-Id: I77024957b9497c45296bbbb24ca972b26348a8c3
parent bc4ae6bd
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ public class StatsUtilsManager { ...@@ -36,7 +36,7 @@ public class StatsUtilsManager {
public void onCreate(final Context context) { public void onCreate(final Context context) {
} }
public void onLoadSettings(final SettingsValues settingsValues) { public void onLoadSettings(final Context context, final SettingsValues settingsValues) {
} }
public void onStartInputView() { public void onStartInputView() {
...@@ -45,6 +45,6 @@ public class StatsUtilsManager { ...@@ -45,6 +45,6 @@ public class StatsUtilsManager {
public void onFinishInputView() { public void onFinishInputView() {
} }
public void onDestroy() { public void onDestroy(final Context context) {
} }
} }
...@@ -638,8 +638,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ...@@ -638,8 +638,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mDictionaryFacilitator.updateEnabledSubtypes(mRichImm.getMyEnabledInputMethodSubtypeList( mDictionaryFacilitator.updateEnabledSubtypes(mRichImm.getMyEnabledInputMethodSubtypeList(
true /* allowsImplicitlySelectedSubtypes */)); true /* allowsImplicitlySelectedSubtypes */));
refreshPersonalizationDictionarySession(currentSettingsValues); refreshPersonalizationDictionarySession(currentSettingsValues);
mStatsUtilsManager.onLoadSettings(currentSettingsValues);
resetDictionaryFacilitatorIfNecessary(); resetDictionaryFacilitatorIfNecessary();
mStatsUtilsManager.onLoadSettings(this /* context */, currentSettingsValues);
} }
private void refreshPersonalizationDictionarySession( private void refreshPersonalizationDictionarySession(
...@@ -739,7 +739,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ...@@ -739,7 +739,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
unregisterReceiver(mRingerModeChangeReceiver); unregisterReceiver(mRingerModeChangeReceiver);
unregisterReceiver(mDictionaryPackInstallReceiver); unregisterReceiver(mDictionaryPackInstallReceiver);
unregisterReceiver(mDictionaryDumpBroadcastReceiver); unregisterReceiver(mDictionaryDumpBroadcastReceiver);
mStatsUtilsManager.onDestroy(); mStatsUtilsManager.onDestroy(this /* context */);
DictionaryDecayBroadcastReciever.cancelIntervalAlarmForDictionaryDecaying(this); DictionaryDecayBroadcastReciever.cancelIntervalAlarmForDictionaryDecaying(this);
super.onDestroy(); super.onDestroy();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment