summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-09-10 10:05:56 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-09-10 10:05:56 -0700
commitb7da0059835ea0df491fa2a1be14b87ca46dd85d (patch)
tree705dc9646b45a3575e972587034ab954baa2c53c /src
parent88393a3ee15010fbbd97f7ab8866bdf1ebf4ffeb (diff)
parent7c4b95f00c1bffaa238428d325aa49de6ebc7c59 (diff)
downloadpackages_providers_ContactsProvider-b7da0059835ea0df491fa2a1be14b87ca46dd85d.zip
packages_providers_ContactsProvider-b7da0059835ea0df491fa2a1be14b87ca46dd85d.tar.gz
packages_providers_ContactsProvider-b7da0059835ea0df491fa2a1be14b87ca46dd85d.tar.bz2
Merge "Support to delete single call log" into ui_dev_2.0
Diffstat (limited to 'src')
-rw-r--r--src/com/android/providers/contacts/CallLogProvider.java5
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);
}