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

Commit 5ef3d58d authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Deprecate BroadcastOptions#setRemoveMatchingFilter() API.

Now that we have the new delivery group policy related APIs
(BroadcastOptions#setDeliveryGroupMatchingFilter),
setRemoveMatchingFilter() API is not needed and should be
deprecated. It will be removed once we migrate the clients
to use the new APIs.

Bug: 263815499
Test: TH
Change-Id: I18b4afefc119d6c46a866872ea5c1dc8b07ffc34
parent 09183fb1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -268,7 +268,11 @@ public class BroadcastOptions extends ComponentOptions {
        return opts;
    }

    /** {@hide} */
    /**
     * {@hide}
     * @deprecated use {@link #setDeliveryGroupMatchingFilter(IntentFilter)} instead.
     */
    @Deprecated
    public static @NonNull BroadcastOptions makeRemovingMatchingFilter(
            @NonNull IntentFilter removeMatchingFilter) {
        BroadcastOptions opts = new BroadcastOptions();
@@ -703,7 +707,9 @@ public class BroadcastOptions extends ComponentOptions {
     * to remove any pending {@link Intent#ACTION_SCREEN_OFF} broadcasts.
     *
     * @hide
     * @deprecated use {@link #setDeliveryGroupMatchingFilter(IntentFilter)} instead.
     */
    @Deprecated
    public void setRemoveMatchingFilter(@NonNull IntentFilter removeMatchingFilter) {
        mRemoveMatchingFilter = Objects.requireNonNull(removeMatchingFilter);
    }