diff options
| author | Julia Reynolds <juliacr@google.com> | 2015-12-07 08:23:48 -0500 |
|---|---|---|
| committer | Julia Reynolds <juliacr@google.com> | 2015-12-11 14:57:47 -0500 |
| commit | ead00aac154f76abfc9739d76b100597b3e42d96 (patch) | |
| tree | 675e4818b1c0ed226e97210ffdad4df1cdfe3a01 /core/java/android | |
| parent | 752b070e327f3a7a1538c702566a251636dc806d (diff) | |
Add importance to notification guts.
Note: the guts are still trucated to the height of the notification.
The slider initially shows the importance of the individual notification,
but changing the slider changes the importance for the whole group
of notifications.
Bug: 22451710
Change-Id: Id6de3aaace2bdb88a8cc5db517002dc7f0e349ae
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/service/notification/NotificationListenerService.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index a7545f21ad22..2f10cdaabfd7 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -833,29 +833,29 @@ public abstract class NotificationListenerService extends Service { /** * A notification with no importance: shows nowhere, is blocked. */ - public static final int IMPORTANCE_NONE = -2; + public static final int IMPORTANCE_NONE = 0; /** * Low notification importance: only shows in the shade, below the fold. */ - public static final int IMPORTANCE_LOW = -1; + public static final int IMPORTANCE_LOW = 1; /** * Default notification importance: shows everywhere, but is not intrusive. */ - public static final int IMPORTANCE_DEFAULT = 0; + public static final int IMPORTANCE_DEFAULT = 2; /** * Higher notification importance: shows everywhere, makes noise, * but does not visually intrude. */ - public static final int IMPORTANCE_HIGH = 1; + public static final int IMPORTANCE_HIGH = 3; /** * Highest notification importance: shows everywhere, makes noise, * and also visually intrudes. */ - public static final int IMPORTANCE_MAX = 2; + public static final int IMPORTANCE_MAX = 4; private String mKey; private int mRank = -1; |
