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

Commit c97d8463 authored by Tony's avatar Tony Committed by Tony Wickham
Browse files

Report when a notification is shown in the popup

Change-Id: I5c06b18f731e2dc8e47bacba59746fc4cc02c42c
parent ddc90f8f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)) {