Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f964a8d authored by xshu's avatar xshu
Browse files

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
parent c79530b4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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