mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Report when a notification is shown in the popup
Change-Id: I5c06b18f731e2dc8e47bacba59746fc4cc02c42c
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user