summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony <twickham@google.com>2018-05-29 09:49:34 -0700
committerTony Wickham <twickham@google.com>2018-05-29 17:05:02 +0000
commitc97d8463727f1ccac55c83842f9446dbdc55ac3e (patch)
tree4c2b98623029bff0367d9b7d74ff28cb29c1fbc4 /src
parentddc90f8f21ec5b534e93fafaa73b802629947c22 (diff)
downloadandroid_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.java4
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)) {