Update the function used to log the dream picking events.

The behavior is identical to before (for StatsLogWriter), but switching
to the generic function with the appropriate field names.

Bug: 213906448
Test: on device via `statsd_testdrive 97`
Change-Id: I241d110b531567cb828a2ed849c79b6595a4b4d1
This commit is contained in:
Xiaowen Lei
2022-03-31 04:50:23 +00:00
parent a809f491e5
commit f3dce9d7d4

View File

@@ -141,10 +141,9 @@ public class DreamPickerController extends BasePreferenceController implements
public void onItemClicked() {
mActiveDream = mDreamInfo;
mBackend.setActiveDream(mDreamInfo.componentName);
mMetricsFeatureProvider.action(
mContext,
SettingsEnums.ACTION_DREAM_SELECT_TYPE,
mDreamInfo.componentName.flattenToString());
mMetricsFeatureProvider.action(SettingsEnums.PAGE_UNKNOWN,
SettingsEnums.ACTION_DREAM_SELECT_TYPE, SettingsEnums.PAGE_UNKNOWN,
mDreamInfo.componentName.flattenToString(), 1);
}
@Override