ResearchLogging log when preferences change

DO NOT MERGE

Bug: 6188932
Change-Id: Ia7ee65e7f3be10d031a065aaa6c3d18610c7dff0
main
Kurt Partridge 2012-08-06 18:29:51 -07:00
parent 221e756fd7
commit c58f5d904b
1 changed files with 13 additions and 0 deletions

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 = {