Add subtype for layout direction to Slice

Test: make
Bug: 73123366
Change-Id: I1446dadd8a50e7682d640aa55a7d4a20faf52416
This commit is contained in:
Mady Mellor
2018-03-30 14:06:26 -07:00
parent 47335f6e1c
commit 209af08eca
2 changed files with 8 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ public final class Slice implements Parcelable {
SUBTYPE_SOURCE,
SUBTYPE_TOGGLE,
SUBTYPE_VALUE,
SUBTYPE_LAYOUT_DIRECTION,
})
@Retention(RetentionPolicy.SOURCE)
public @interface SliceSubtype {}
@@ -189,6 +190,12 @@ public final class Slice implements Parcelable {
* slices.
*/
public static final String HINT_PERMISSION_REQUEST = "permission_request";
/**
* Subtype to indicate that this item indicates the layout direction for content
* in the slice.
* Expected to be an item of format {@link SliceItem#FORMAT_INT}.
*/
public static final String SUBTYPE_LAYOUT_DIRECTION = "layout_direction";
/**
* Key to retrieve an extra added to an intent when a control is changed.
*/