From c692869c1e875a1c78b50c14cdb136aa94ce91e9 Mon Sep 17 00:00:00 2001 From: Bernardo Rufino Date: Wed, 12 Feb 2020 15:04:09 +0000 Subject: [PATCH] Use SDK_INT constant in the javadoc of SAW intents Instead of hardcoding 11. Bug: 146563745 Test: Builds Change-Id: I3e4002134010558b224492512bd76958edc8e4dc --- core/java/android/provider/Settings.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 7c4ec8e00650a..37efec34b3307 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -997,8 +997,9 @@ public final class Settings { *

* In some cases, a matching Activity may not exist, so ensure you safeguard against this. *

- * Input: Optionally, in versions of Android prior to 11, the Intent's data URI can specify the - * application package name to directly invoke the management GUI specific to the package name. + * Input: Optionally, in versions of Android prior to {@link android.os.Build.VERSION_CODES#R}, + * the Intent's data URI can specify the application package name to directly invoke the + * management GUI specific to the package name. * For example "package:com.my.app". *

* Output: Nothing. @@ -1011,9 +1012,10 @@ public final class Settings { * Activity Action: Show screen for controlling if the app specified in the data URI of the * intent can draw on top of other apps. *

- * Unlike {@link #ACTION_MANAGE_OVERLAY_PERMISSION}, which in Android 11 can't be used to show - * a GUI for a specific package, permission {@code android.permission.INTERNAL_SYSTEM_WINDOW} is - * needed to start an activity with this intent. + * Unlike {@link #ACTION_MANAGE_OVERLAY_PERMISSION}, which in Android {@link + * android.os.Build.VERSION_CODES#R} can't be used to show a GUI for a specific package, + * permission {@code android.permission.INTERNAL_SYSTEM_WINDOW} is needed to start an activity + * with this intent. *

* In some cases, a matching Activity may not exist, so ensure you * safeguard against this.