diff options
author | Tony <twickham@google.com> | 2018-05-29 09:49:34 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2018-05-29 17:05:02 +0000 |
commit | c97d8463727f1ccac55c83842f9446dbdc55ac3e (patch) | |
tree | 4c2b98623029bff0367d9b7d74ff28cb29c1fbc4 /src | |
parent | ddc90f8f21ec5b534e93fafaa73b802629947c22 (diff) | |
download | android_packages_apps_Trebuchet-c97d8463727f1ccac55c83842f9446dbdc55ac3e.tar.gz android_packages_apps_Trebuchet-c97d8463727f1ccac55c83842f9446dbdc55ac3e.tar.bz2 android_packages_apps_Trebuchet-c97d8463727f1ccac55c83842f9446dbdc55ac3e.zip |
Report when a notification is shown in the popup
Change-Id: I5c06b18f731e2dc8e47bacba59746fc4cc02c42c
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/notification/NotificationMainView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/notification/NotificationMainView.java b/src/com/android/launcher3/notification/NotificationMainView.java index 33caded4d..5c0e25941 100644 --- a/src/com/android/launcher3/notification/NotificationMainView.java +++ b/src/com/android/launcher3/notification/NotificationMainView.java @@ -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)) { |