am 698b19ef: Pass a new argument to StatsUtils.
* commit '698b19ef35d1d865943ec9d9ee05f8f0e66dc3f8': Pass a new argument to StatsUtils.main
commit
07f4bcdd4a
|
@ -17,13 +17,16 @@
|
|||
package com.android.inputmethod.latin.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.android.inputmethod.latin.RichInputMethodManager;
|
||||
import com.android.inputmethod.latin.settings.SettingsValues;
|
||||
|
||||
public final class StatsUtils {
|
||||
public static void init(final Context context) {
|
||||
}
|
||||
|
||||
public static void onCreate(final SettingsValues settingsValues) {
|
||||
public static void onCreate(final SettingsValues settingsValues,
|
||||
RichInputMethodManager richImm) {
|
||||
}
|
||||
|
||||
public static void onLoadSettings(final SettingsValues settingsValues) {
|
||||
|
|
|
@ -561,7 +561,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
|
||||
DictionaryDecayBroadcastReciever.setUpIntervalAlarmForDictionaryDecaying(this);
|
||||
|
||||
StatsUtils.onCreate(mSettings.getCurrent());
|
||||
StatsUtils.onCreate(mSettings.getCurrent(), mRichImm);
|
||||
}
|
||||
|
||||
// Has to be package-visible for unit tests
|
||||
|
|
|
@ -40,7 +40,8 @@ import java.util.List;
|
|||
/**
|
||||
* Enrichment class for InputMethodManager to simplify interaction and add functionality.
|
||||
*/
|
||||
public final class RichInputMethodManager {
|
||||
// non final for easy mocking.
|
||||
public class RichInputMethodManager {
|
||||
private static final String TAG = RichInputMethodManager.class.getSimpleName();
|
||||
|
||||
private RichInputMethodManager() {
|
||||
|
|
Loading…
Reference in New Issue