diff options
| author | 2018-01-18 14:17:14 +0000 | |
|---|---|---|
| committer | 2018-01-18 14:17:14 +0000 | |
| commit | e8ffec166131d27e47fbf21c9db9f6812051b15f (patch) | |
| tree | 9d55b56dfcd6fee8aac78bfee3520a8d46d1ad11 | |
| parent | 588a06f5a25adad63337ac481f9e1b55dcc169a1 (diff) | |
| parent | fd1cbb8210a59359c353c1f98c7bd9c54660d881 (diff) | |
Merge "Add hint to indicate 'see more' type content"
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/app/slice/Slice.java | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index f6daf97bd462..1fb64ed179dc 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7094,6 +7094,7 @@ package android.app.slice { field public static final java.lang.String HINT_MAX = "max"; 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_SEE_MORE = "see_more"; field public static final java.lang.String HINT_SELECTED = "selected"; field public static final java.lang.String HINT_SHORTCUT = "shortcut"; field public static final java.lang.String HINT_SUMMARY = "summary"; diff --git a/core/java/android/app/slice/Slice.java b/core/java/android/app/slice/Slice.java index 27cd6e56dc0c..6093a4a02fbe 100644 --- a/core/java/android/app/slice/Slice.java +++ b/core/java/android/app/slice/Slice.java @@ -65,6 +65,7 @@ public final class Slice implements Parcelable { HINT_TOGGLE, HINT_HORIZONTAL, HINT_PARTIAL, + HINT_SEE_MORE }) @Retention(RetentionPolicy.SOURCE) public @interface SliceHint {} @@ -149,7 +150,11 @@ public final class Slice implements Parcelable { * Used to indicate the maximum integer value for a {@link #SUBTYPE_SLIDER}. */ public static final String HINT_MAX = "max"; - + /** + * A hint representing that this item should be used to indicate that there's more + * content associated with this slice. + */ + public static final String HINT_SEE_MORE = "see_more"; /** * Key to retrieve an extra added to an intent when a control is changed. */ |