Add new Intent category for hub mode.

We will use this new intent filter to determine which activities have opted-in to hub mode.


Test: locally on device`
Change-Id: I518763c7b43d60c7b90ea331895d2701ffd01139
Bug: 198325938
This commit is contained in:
Lucas Silva
2021-08-27 15:43:15 +00:00
parent df79d0b6f1
commit c0c0a0c60e

View File

@@ -4917,6 +4917,12 @@ public class Intent implements Parcelable, Cloneable {
*/
@SdkConstant(SdkConstantType.INTENT_CATEGORY)
public static final String CATEGORY_CAR_LAUNCHER = "android.intent.category.CAR_LAUNCHER";
/**
* Used to indicate that the activity can be used in communal mode.
* @hide
*/
@SdkConstant(SdkConstantType.INTENT_CATEGORY)
public static final String CATEGORY_COMMUNAL_MODE = "android.intent.category.COMMUNAL_MODE";
/**
* Indicates a Leanback settings activity to be displayed in the Leanback launcher.
* @hide