am 698b19ef: Pass a new argument to StatsUtils.

* commit '698b19ef35d1d865943ec9d9ee05f8f0e66dc3f8':
  Pass a new argument to StatsUtils.
main
Mohammadinamul Sheik 2014-08-22 07:11:28 +00:00 committed by Android Git Automerger
commit 07f4bcdd4a
3 changed files with 7 additions and 3 deletions

View File

@ -17,13 +17,16 @@
package com.android.inputmethod.latin.utils; package com.android.inputmethod.latin.utils;
import android.content.Context; import android.content.Context;
import com.android.inputmethod.latin.RichInputMethodManager;
import com.android.inputmethod.latin.settings.SettingsValues; import com.android.inputmethod.latin.settings.SettingsValues;
public final class StatsUtils { public final class StatsUtils {
public static void init(final Context context) { 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) { public static void onLoadSettings(final SettingsValues settingsValues) {

View File

@ -561,7 +561,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
DictionaryDecayBroadcastReciever.setUpIntervalAlarmForDictionaryDecaying(this); DictionaryDecayBroadcastReciever.setUpIntervalAlarmForDictionaryDecaying(this);
StatsUtils.onCreate(mSettings.getCurrent()); StatsUtils.onCreate(mSettings.getCurrent(), mRichImm);
} }
// Has to be package-visible for unit tests // 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. * 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 static final String TAG = RichInputMethodManager.class.getSimpleName();
private RichInputMethodManager() { private RichInputMethodManager() {