Adds hint summary to slice

Test: manual -- in support lib with slice demo app, add a summary
      note that it appears when slice is in small format and doesn't
      appear when slice is in large format
Bug: 68378574
Change-Id: Id96e5597311189b0352e1763c678ccf7079d2db1
This commit is contained in:
Mady Mellor
2017-12-11 16:52:18 -08:00
parent 6cca6d503a
commit 39bf43519d
2 changed files with 6 additions and 0 deletions

View File

@@ -7007,6 +7007,7 @@ package android.app.slice {
field public static final java.lang.String HINT_NO_TINT = "no_tint";
field public static final java.lang.String HINT_PARTIAL = "partial";
field public static final java.lang.String HINT_SELECTED = "selected";
field public static final java.lang.String HINT_SUMMARY = "summary";
field public static final java.lang.String HINT_TITLE = "title";
field public static final java.lang.String SUBTYPE_MESSAGE = "message";
field public static final java.lang.String SUBTYPE_SOURCE = "source";

View File

@@ -110,6 +110,11 @@ public final class Slice implements Parcelable {
* @hide
*/
public static final String HINT_HIDDEN = "hidden";
/**
* Hint indicating this content should be shown instead of the normal content when the slice
* is in small format.
*/
public static final String HINT_SUMMARY = "summary";
/**
* Hint to indicate that this content has a toggle action associated with it. To indicate that
* the toggle is on, use {@link #HINT_SELECTED}. When the toggle state changes, the intent