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

Commit 63ed2cd3 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Deprecate BroadcastOptions#setRemoveMatchingFilter() API."

parents e83eee70 5ef3d58d
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);
    }