summaryrefslogtreecommitdiff
path: root/core/java/android/content/Intent.java
diff options
context:
space:
mode:
authorMeng Wang <mewan@google.com>2020-01-23 16:54:38 -0800
committerMeng Wang <mewan@google.com>2020-01-23 17:24:47 -0800
commitffe0cbe5ca68b7c8fa939106ef39c71eccc10f13 (patch)
tree940f7ebdde2665d287d3ecb924feefd27cd76a42 /core/java/android/content/Intent.java
parenteb7dddb9ab785686f7b3d9d8a27cb3fed94cc19a (diff)
Expose ACTION_USER_SWITCHED as system API
Bug: 148180958 Test: make Change-Id: I8eb6689c0542869ef7050ce68f1c47e072f1dc01
Diffstat (limited to 'core/java/android/content/Intent.java')
-rw-r--r--core/java/android/content/Intent.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 9cba7aab3c87..d859a3af73a2 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -3619,7 +3619,9 @@ public class Intent implements Parcelable, Cloneable {
* {@link android.Manifest.permission#MANAGE_USERS} to receive this broadcast.
* @hide
*/
- @UnsupportedAppUsage
+ @RequiresPermission(android.Manifest.permission.MANAGE_USERS)
+ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
+ @SystemApi
public static final String ACTION_USER_SWITCHED =
"android.intent.action.USER_SWITCHED";