From 73915cf2ca01d4e822249641c4b73f512da93e10 Mon Sep 17 00:00:00 2001 From: Jose Lima Date: Tue, 29 Jul 2014 17:16:31 -0700 Subject: [PATCH] Added LEANBACK_SETTINGS Intent category - Added new Intent category (as a hidden/system API) to be used to identify Leanback settings activities that should be listed in the Leanback launcher. Change-Id: Ia31244fb87a66f63ddad562e02e577111573d728 --- core/java/android/content/Intent.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index f224f40610e7c..04a06af2b6c4f 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -25,9 +25,12 @@ import org.xmlpull.v1.XmlPullParserException; import android.annotation.IntDef; import android.annotation.SdkConstant; +import android.annotation.SystemApi; import android.annotation.SdkConstant.SdkConstantType; import android.content.pm.ActivityInfo; + import static android.content.ContentProvider.maybeAddUserId; + import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.content.res.Resources; @@ -47,6 +50,7 @@ import android.util.AttributeSet; import android.util.Log; import com.android.internal.util.XmlUtils; + import org.xmlpull.v1.XmlSerializer; import java.io.IOException; @@ -2894,6 +2898,12 @@ public class Intent implements Parcelable, Cloneable { */ @SdkConstant(SdkConstantType.INTENT_CATEGORY) public static final String CATEGORY_LEANBACK_LAUNCHER = "android.intent.category.LEANBACK_LAUNCHER"; + /** + * Indicates a Leanback settings activity to be displayed in the Leanback launcher. + * @hide + */ + @SystemApi + public static final String CATEGORY_LEANBACK_SETTINGS = "android.intent.category.LEANBACK_SETTINGS"; /** * Provides information about the package it is in; typically used if * a package does not contain a {@link #CATEGORY_LAUNCHER} to provide