diff options
| author | 2023-07-27 15:51:30 +0000 | |
|---|---|---|
| committer | 2023-07-27 15:51:30 +0000 | |
| commit | ebf1af8511acb5974acf2dd7796e5ac51ea86055 (patch) | |
| tree | e5e948c2d6b5d54e3f8272c6ab1812d0b393599e | |
| parent | d10ccc376d63bf4cc089a589e948d6d34e15a9f7 (diff) | |
| parent | 8e3ec2a70020a740cc8547e4ffc50fd635a34598 (diff) | |
Merge "Clarify reasons for notification removal." into udc-dev
| -rw-r--r-- | core/java/android/service/notification/NotificationListenerService.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index 1d49049ab7d4..07f8aac43bf5 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -485,9 +485,6 @@ public abstract class NotificationListenerService extends Service { /** * Implement this method to learn when notifications are removed. * <p> - * This might occur because the user has dismissed the notification using system UI (or another - * notification listener) or because the app has withdrawn the notification. - * <p> * NOTE: The {@link StatusBarNotification} object you receive will be "light"; that is, the * result from {@link StatusBarNotification#getNotification} may be missing some heavyweight * fields such as {@link android.app.Notification#contentView} and @@ -506,9 +503,6 @@ public abstract class NotificationListenerService extends Service { /** * Implement this method to learn when notifications are removed. * <p> - * This might occur because the user has dismissed the notification using system UI (or another - * notification listener) or because the app has withdrawn the notification. - * <p> * NOTE: The {@link StatusBarNotification} object you receive will be "light"; that is, the * result from {@link StatusBarNotification#getNotification} may be missing some heavyweight * fields such as {@link android.app.Notification#contentView} and @@ -531,9 +525,6 @@ public abstract class NotificationListenerService extends Service { /** * Implement this method to learn when notifications are removed and why. * <p> - * This might occur because the user has dismissed the notification using system UI (or another - * notification listener) or because the app has withdrawn the notification. - * <p> * NOTE: The {@link StatusBarNotification} object you receive will be "light"; that is, the * result from {@link StatusBarNotification#getNotification} may be missing some heavyweight * fields such as {@link android.app.Notification#contentView} and @@ -546,10 +537,9 @@ public abstract class NotificationListenerService extends Service { * was just removed. * @param rankingMap The current ranking map that can be used to retrieve ranking information * for active notifications. - * @param reason see {@link #REASON_LISTENER_CANCEL}, etc. */ public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, - int reason) { + @NotificationCancelReason int reason) { onNotificationRemoved(sbn, rankingMap); } |