am 0cf7aa5d: am fa0bac90: ResearchLogging log when preferences change

* commit '0cf7aa5dfd192ccdabb9e5488b4ed9bf046147a2':
  ResearchLogging log when preferences change
main
Kurt Partridge 2012-08-22 16:00:21 -07:00 committed by Android Git Automerger
commit 73c2c67789
1 changed files with 13 additions and 0 deletions

View File

@ -417,6 +417,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
abort(); abort();
} }
requestIndicatorRedraw(); requestIndicatorRedraw();
mPrefs = prefs;
prefsChanged(prefs);
} }
public void presentResearchDialog(final LatinIME latinIME) { public void presentResearchDialog(final LatinIME latinIME) {
@ -741,6 +743,17 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
"UserFeedback", "FeedbackContents" "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 // Regular logging methods
private static final String[] EVENTKEYS_MAINKEYBOARDVIEW_PROCESSMOTIONEVENT = { private static final String[] EVENTKEYS_MAINKEYBOARDVIEW_PROCESSMOTIONEVENT = {