mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
[2]Pass context to StatsUtilsManager for alarms.
Change corresponding to ag/605384 Bug:16553957 Change-Id: I77024957b9497c45296bbbb24ca972b26348a8c3
This commit is contained in:
parent
bc4ae6bdc0
commit
2b69244555
@ -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) {
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user