Log preference change as count (in addition to action)
Bug: 38258793 Test: rerun robotests, and inspected log Change-Id: I23fabddc1336709af424bbcb7250535833a8ada6
This commit is contained in:
@@ -111,6 +111,9 @@ public class SharedPreferencesLogger implements SharedPreferences {
|
||||
mPreferenceKeySet.add(prefKey);
|
||||
return;
|
||||
}
|
||||
// TODO: Remove count logging to save some resource.
|
||||
mMetricsFeature.count(mContext, prefKey + "|" + value, 1);
|
||||
|
||||
// Pref key exists in set, log it's change in metrics.
|
||||
mMetricsFeature.action(mContext, MetricsEvent.ACTION_SETTINGS_PREFERENCE_CHANGE,
|
||||
Pair.create(MetricsEvent.FIELD_SETTINGS_PREFERENCE_CHANGE_NAME, prefKey),
|
||||
|
Reference in New Issue
Block a user