OSDN Git Service

Added a comment to make it clearer that the operation has to be the first
authorDaniel Lehmann <lehmannd@google.com>
Thu, 18 Mar 2010 23:08:30 +0000 (16:08 -0700)
committerDaniel Lehmann <lehmannd@google.com>
Thu, 18 Mar 2010 23:08:30 +0000 (16:08 -0700)
Bug:2521447

Change-Id: I155d0b328115d007116a0fe4560e703647ec2fb5

core/java/android/pim/vcard/VCardEntry.java

index c7a59fa..e40a7ba 100644 (file)
@@ -1055,6 +1055,8 @@ public class VCardEntry {
     public Uri pushIntoContentResolver(ContentResolver resolver) {
         ArrayList<ContentProviderOperation> operationList =
             new ArrayList<ContentProviderOperation>();
+        // 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;