diff options
| author | Julia Reynolds <juliacr@google.com> | 2016-01-08 17:49:11 -0500 |
|---|---|---|
| committer | Julia Reynolds <juliacr@google.com> | 2016-01-08 17:56:42 -0500 |
| commit | 85aa6cb1779635bb3b6b3ba739fc4ee3813bba3a (patch) | |
| tree | aed4223f33b6eee6af1192e5286237fa4a9235a7 /core/java/android | |
| parent | d1d533610aad279f7ae9037f0e4b3dd865bb0a24 (diff) | |
Notification banning updates.
- Dismiss notifications from banned topics
- Don't ban all topics when banning an app.
- Block notifications from banned topics.
Bug: 26154396
Change-Id: I1d94e6176a413386d89f8dc1c4899aee8a8a73b8
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/service/notification/NotificationAssistantService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/service/notification/NotificationAssistantService.java b/core/java/android/service/notification/NotificationAssistantService.java index aba82fad0bfa..035462d56fc5 100644 --- a/core/java/android/service/notification/NotificationAssistantService.java +++ b/core/java/android/service/notification/NotificationAssistantService.java @@ -95,6 +95,9 @@ public abstract class NotificationAssistantService extends NotificationListenerS /** Notification was canceled because it was an invisible member of a group. */ public static final int REASON_GROUP_OPTIMIZATION = 13; + /** Notification was canceled by the user banning the topic. */ + public static final int REASON_TOPIC_BANNED = 14; + public class Adjustment { int mImportance; CharSequence mExplanation; |
