From 91fa6c122df30104642c801b1dbd568f0012760f Mon Sep 17 00:00:00 2001 From: Abhijith Shastry Date: Tue, 22 Mar 2016 18:24:21 -0700 Subject: [PATCH] Document that re-inserting the same blocked number is permitted. BUG: 27779600 Change-Id: I2cb5cbf5f50ed3bf2183858eb332ea5e6df2a0c6 --- core/java/android/provider/BlockedNumberContract.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/java/android/provider/BlockedNumberContract.java b/core/java/android/provider/BlockedNumberContract.java index b06d503a209d0..6fe01899f1440 100644 --- a/core/java/android/provider/BlockedNumberContract.java +++ b/core/java/android/provider/BlockedNumberContract.java @@ -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). + *

+ * Attempting to insert an existing blocked number (same + * {@link BlockedNumbers#COLUMN_ORIGINAL_NUMBER} column) will result in replacing the existing + * blocked number. + *

* Examples: *

  * ContentValues values = new ContentValues();