Merge "Log notification location when a notification action is clicked."

This commit is contained in:
TreeHugger Robot
2019-01-29 15:19:28 +00:00
committed by Android (Google) Code Review

View File

@@ -770,7 +770,10 @@ public class NotificationManagerService extends SystemService {
action.isContextual() ? 1 : 0)
.addTaggedData(
MetricsEvent.NOTIFICATION_SMART_SUGGESTION_ASSISTANT_GENERATED,
generatedByAssistant ? 1 : 0));
generatedByAssistant ? 1 : 0)
.addTaggedData(MetricsEvent.NOTIFICATION_LOCATION,
nv.location.toMetricsEventEnum()));
EventLogTags.writeNotificationActionClicked(key, actionIndex,
r.getLifespanMs(now), r.getFreshnessMs(now), r.getExposureMs(now),
nv.rank, nv.count);