ResearchLogging log when preferences change

Bug: 6188932
Change-Id: I568b54248b541e6f5916b18e46d33dd447b783b7
This commit is contained in:
Kurt Partridge 2012-08-06 18:29:51 -07:00
parent 8bc58790c5
commit bf2d169c1a

View file

@ -407,6 +407,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
abort();
}
requestIndicatorRedraw();
mPrefs = prefs;
prefsChanged(prefs);
}
public void presentResearchDialog(final LatinIME latinIME) {
@ -735,6 +737,17 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
"UserFeedback", "FeedbackContents"
};
private static final String[] EVENTKEYS_PREFS_CHANGED = {
"PrefsChanged", "prefs"
};
public static void prefsChanged(final SharedPreferences prefs) {
final ResearchLogger researchLogger = getInstance();
final Object[] values = {
prefs
};
researchLogger.enqueueEvent(EVENTKEYS_PREFS_CHANGED, values);
}
// Regular logging methods
private static final String[] EVENTKEYS_MAINKEYBOARDVIEW_PROCESSMOTIONEVENT = {