diff options
| author | xshu <xshu@google.com> | 2022-01-11 18:52:03 -0800 |
|---|---|---|
| committer | xshu <xshu@google.com> | 2022-01-11 18:52:03 -0800 |
| commit | 3f964a8d672131f63664c80c19a6e700987ec1e7 (patch) | |
| tree | 30606e880e3d1094e48f41af4986f971a086a0d8 /core/java | |
| parent | c79530b4e082e54d2b9a1d9c30cb4ae7a1fc67b5 (diff) | |
Address BroadcastOption API feedback
Clarify that both null and empty list can be used to clear the
previously set value.
Bug: 214105366
Test: compile
Change-Id: Ic6aaedf655b64c78d2d07dc00177911c08a8e7e9
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/BroadcastOptions.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java index 0bb6ffa3a035..7812aba210e7 100644 --- a/core/java/android/app/BroadcastOptions.java +++ b/core/java/android/app/BroadcastOptions.java @@ -430,8 +430,8 @@ public class BroadcastOptions extends ComponentOptions { * permissions set by {@link #setRequireAllOfPermissions(String[])}, and none of the * permissions set by {@link #setRequireNoneOfPermissions(String[])} to get the broadcast. * - * @param requiredPermissions a list of Strings of permission the receiver must have, or null - * to clear any previously set value. + * @param requiredPermissions a list of Strings of permission the receiver must have. Set to + * null or an empty array to clear any previously set value. * @hide */ @SystemApi @@ -449,8 +449,8 @@ public class BroadcastOptions extends ComponentOptions { * permissions set by {@link #setRequireAllOfPermissions(String[])}, and none of the * permissions set by {@link #setRequireNoneOfPermissions(String[])} to get the broadcast. * - * @param excludedPermissions a list of Strings of permission the receiver must not have, - * or null to clear any previously set value. + * @param excludedPermissions a list of Strings of permission the receiver must not have. Set to + * null or an empty array to clear any previously set value. * @hide */ @SystemApi |
