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

Commit 515227f5 authored by Abhijith Shastry's avatar Abhijith Shastry Committed by android-build-merger
Browse files

Merge "Update BlockedNumberContract documentation." into nyc-dev am: 9a2384a7

am: 71048da6

* commit '71048da6':
  Update BlockedNumberContract documentation.

Change-Id: I4b1d63f42fd94b7d09b9bcd800f1ea809a17329d
parents 753cec02 71048da6
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -136,9 +136,9 @@ import android.os.Bundle;
 * <p>
 * Apps must use the method {@link #canCurrentUserBlockNumbers(Context)} before performing any
 * operation on the blocked number provider. If {@link #canCurrentUserBlockNumbers(Context)} returns
 * {@code false}, all operations on the provider will fail with an
 * {@link UnsupportedOperationException}. The platform will block calls, and messages from numbers
 * in the provider independent of the current user.
 * {@code false}, all operations on the provider will fail with a {@link SecurityException}. The
 * platform will block calls, and messages from numbers in the provider independent of the current
 * user.
 * </p>
 */
public class BlockedNumberContract {
@@ -236,7 +236,7 @@ public class BlockedNumberContract {
     * {@code phoneNumber} with the {@link BlockedNumbers#COLUMN_E164_NUMBER} column.
     *
     * <p> Note that if the {@link #canCurrentUserBlockNumbers} is {@code false} for the user
     * context {@code context}, this method will throw an {@link UnsupportedOperationException}.
     * context {@code context}, this method will throw a {@link SecurityException}.
     */
    @WorkerThread
    public static boolean isBlocked(Context context, String phoneNumber) {
@@ -260,7 +260,7 @@ public class BlockedNumberContract {
     * {@link BlockedNumbers#CONTENT_URI} URI.
     *
     * <p> Note that if the {@link #canCurrentUserBlockNumbers} is {@code false} for the user
     * context {@code context}, this method will throw an {@link UnsupportedOperationException}.
     * context {@code context}, this method will throw a {@link SecurityException}.
     */
    @WorkerThread
    public static int unblock(Context context, String phoneNumber) {