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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user