diff options
-rw-r--r-- | src/com/android/providers/contacts/CallLogProvider.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/providers/contacts/CallLogProvider.java b/src/com/android/providers/contacts/CallLogProvider.java index f83e4a7..9070e78 100644 --- a/src/com/android/providers/contacts/CallLogProvider.java +++ b/src/com/android/providers/contacts/CallLogProvider.java @@ -49,6 +49,7 @@ import com.android.providers.contacts.ContactsDatabaseHelper.DbProperties; import com.android.providers.contacts.ContactsDatabaseHelper.Tables; import com.android.providers.contacts.util.SelectionBuilder; import com.android.providers.contacts.util.UserUtils; + import com.google.common.annotations.VisibleForTesting; import java.util.HashMap; @@ -364,6 +365,10 @@ public class CallLogProvider extends ContentProvider { case CALLS: return getDatabaseModifier(db).delete(Tables.CALLS, selectionBuilder.build(), selectionArgs); + case CALLS_ID: + return getDatabaseModifier(db).delete(Tables.CALLS, + new SelectionBuilder(Calls._ID + "=?").build(), + new String[] { uri.getLastPathSegment() }); default: throw new UnsupportedOperationException("Cannot delete that URL: " + uri); } |