Pass a new argument to StatsUtils.

Change-Id: I61e32c7a455a273e8daf9a5487d7969923802488
Bug: 17013677
main
Mohammadinamul Sheik 2014-08-13 17:09:06 -07:00 committed by Ken Wakasa
parent 5a96395b78
commit 698b19ef35
3 changed files with 7 additions and 3 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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() {