summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorMady Mellor <madym@google.com>2018-03-01 16:46:56 -0800
committerMady Mellor <madym@google.com>2018-03-02 00:54:15 +0000
commit15e2c5d54dbd83eebc9a5bc767fcdf30f659afca (patch)
treee2d50ed322576afa85d86223422583ed4711ae35 /core/java
parentc5ad652629c3f28fcb77ca63f99882554a832cbc (diff)
Add a HINT_KEYWORDS to Slice
Want to be able to support allowing a Slice to specify some keywords associated with it; need a new hint to identify these. Bug: 74086214 Test: make Change-Id: I79d3f1806eecf416f5e3ae09451b90507b382c24
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/slice/Slice.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/app/slice/Slice.java b/core/java/android/app/slice/Slice.java
index b5c69d8897c7..65e54f97e215 100644
--- a/core/java/android/app/slice/Slice.java
+++ b/core/java/android/app/slice/Slice.java
@@ -65,7 +65,8 @@ public final class Slice implements Parcelable {
HINT_TOGGLE,
HINT_HORIZONTAL,
HINT_PARTIAL,
- HINT_SEE_MORE
+ HINT_SEE_MORE,
+ HINT_KEY_WORDS
})
@Retention(RetentionPolicy.SOURCE)
public @interface SliceHint {}
@@ -149,6 +150,11 @@ public final class Slice implements Parcelable {
*/
public static final String HINT_CALLER_NEEDED = "caller_needed";
/**
+ * A hint to indicate that the contents of this subslice represent a list of keywords
+ * related to the parent slice.
+ */
+ public static final String HINT_KEY_WORDS = "key_words";
+ /**
* Key to retrieve an extra added to an intent when a control is changed.
*/
public static final String EXTRA_TOGGLE_STATE = "android.app.slice.extra.TOGGLE_STATE";