am 20469a87: Merge "[2]Pass context to StatsUtilsManager for alarms."

* commit '20469a8779f7e934cc69a634d171313dd60bd364':
  [2]Pass context to StatsUtilsManager for alarms.
main
Jatin Matani 2014-12-18 21:50:35 +00:00 committed by Android Git Automerger
commit fc59211bed
2 changed files with 4 additions and 4 deletions

View File

@ -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 {
public void onFinishInputView() { public void onFinishInputView() {
} }
public void onDestroy() { public void onDestroy(final Context context) {
} }
} }

View File

@ -635,8 +635,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(
@ -736,7 +736,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();
} }