Pass a new argument to StatsUtils.
Change-Id: I61e32c7a455a273e8daf9a5487d7969923802488 Bug: 17013677main
parent
5a96395b78
commit
698b19ef35
|
@ -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