Report when a notification is shown in the popup

Change-Id: I5c06b18f731e2dc8e47bacba59746fc4cc02c42c
This commit is contained in:
Tony
2018-05-29 09:49:34 -07:00
committed by Tony Wickham
parent ddc90f8f21
commit c97d846372

View File

@@ -116,6 +116,10 @@ public class NotificationMainView extends FrameLayout implements SwipeDetector.L
*/
public void applyNotificationInfo(NotificationInfo mainNotification, boolean animate) {
mNotificationInfo = mainNotification;
NotificationListener listener = NotificationListener.getInstanceIfConnected();
if (listener != null) {
listener.setNotificationsShown(new String[] {mNotificationInfo.notificationKey});
}
CharSequence title = mNotificationInfo.title;
CharSequence text = mNotificationInfo.text;
if (!TextUtils.isEmpty(title) && !TextUtils.isEmpty(text)) {