OSDN Git Service

Document that re-inserting the same blocked number is permitted.
authorAbhijith Shastry <ashastry@google.com>
Wed, 23 Mar 2016 01:24:21 +0000 (18:24 -0700)
committerAbhijith Shastry <ashastry@google.com>
Wed, 23 Mar 2016 01:24:21 +0000 (18:24 -0700)
BUG: 27779600
Change-Id: I2cb5cbf5f50ed3bf2183858eb332ea5e6df2a0c6

core/java/android/provider/BlockedNumberContract.java

index b06d503..6fe0189 100644 (file)
@@ -68,7 +68,12 @@ import android.os.Bundle;
  * Apps can optionally provide the {@link BlockedNumbers#COLUMN_E164_NUMBER} which is the phone
  * number's E164 representation. The provider automatically populates this column if the app does
  * not provide it. Note that this column is not populated if normalization fails or if the address
- * is not a phone number (eg: email). The provider enforces uniqueness constraint on this column.
+ * is not a phone number (eg: email).
+ * <p>
+ * Attempting to insert an existing blocked number (same
+ * {@link BlockedNumbers#COLUMN_ORIGINAL_NUMBER} column) will result in replacing the existing
+ * blocked number.
+ * <p>
  * Examples:
  * <pre>
  * ContentValues values = new ContentValues();