Add subtype for priority
Intended to use with SliceItem type int to note the priority of an item (such as an action) within a template. Test: none Bug: 68378561 Change-Id: I109adf4ea77638b7d27f3aaa7f8eb1c325287f0c
This commit is contained in:
@@ -7034,6 +7034,7 @@ package android.app.slice {
|
||||
field public static final java.lang.String HINT_TITLE = "title";
|
||||
field public static final java.lang.String SUBTYPE_COLOR = "color";
|
||||
field public static final java.lang.String SUBTYPE_MESSAGE = "message";
|
||||
field public static final java.lang.String SUBTYPE_PRIORITY = "priority";
|
||||
field public static final java.lang.String SUBTYPE_SLIDER = "slider";
|
||||
field public static final java.lang.String SUBTYPE_SOURCE = "source";
|
||||
field public static final java.lang.String SUBTYPE_TOGGLE = "toggle";
|
||||
|
||||
@@ -182,6 +182,10 @@ public final class Slice implements Parcelable {
|
||||
* which can be retrieved to see the new state of the toggle.
|
||||
*/
|
||||
public static final String SUBTYPE_TOGGLE = "toggle";
|
||||
/**
|
||||
* Subtype to tag an item representing priority.
|
||||
*/
|
||||
public static final String SUBTYPE_PRIORITY = "priority";
|
||||
|
||||
private final SliceItem[] mItems;
|
||||
private final @SliceHint String[] mHints;
|
||||
|
||||
Reference in New Issue
Block a user