Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72991967 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Log notification location when a notification action is clicked.

Bug: 120767764
Test: press a smart action from notification shade, and one from a
heads-up notification to ensure the correct notification locations are
logged.
Change-Id: I2fb10bec9c0c1da0807581a0337f8f6b1adc620e
parent 9b23e4f4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -769,7 +769,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);