From c0c0a0c60e3176351fea33d97e50f074f5ba9b77 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Fri, 27 Aug 2021 15:43:15 +0000 Subject: [PATCH] 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 --- core/java/android/content/Intent.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 546abf8ae72ea..ffac986b215d4 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -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