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
This commit is contained in:
xshu
2022-01-11 18:52:03 -08:00
parent c79530b4e0
commit 3f964a8d67

View File

@@ -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