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
This commit is contained in:
Mady Mellor
2018-03-01 16:46:56 -08:00
parent c5ad652629
commit 15e2c5d54d
2 changed files with 8 additions and 1 deletions

View File

@@ -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 {}
@@ -148,6 +149,11 @@ public final class Slice implements Parcelable {
* apps.
*/
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.
*/