From d62d9eec0df0ecf6fe9ac2f63acde0df6c06d529 Mon Sep 17 00:00:00 2001 From: Daniel Lehmann Date: Thu, 18 Mar 2010 16:08:30 -0700 Subject: [PATCH] Added a comment to make it clearer that the operation has to be the first Bug:2521447 Change-Id: I155d0b328115d007116a0fe4560e703647ec2fb5 --- core/java/android/pim/vcard/VCardEntry.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/pim/vcard/VCardEntry.java b/core/java/android/pim/vcard/VCardEntry.java index c7a59faf9eca6..e40a7baa79d3f 100644 --- a/core/java/android/pim/vcard/VCardEntry.java +++ b/core/java/android/pim/vcard/VCardEntry.java @@ -1055,6 +1055,8 @@ public class VCardEntry { public Uri pushIntoContentResolver(ContentResolver resolver) { ArrayList operationList = new ArrayList(); + // After applying the batch the first result's Uri is returned so it is important that + // the RawContact is the first operation that gets inserted into the list ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI); String myGroupsId = null;