Merge "ResearchLogging log when preferences change"

main
Kurt Partridge 2012-08-07 20:09:24 -07:00 committed by Android (Google) Code Review
commit cf504d5723
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 = {