Skip to content

Commit

Permalink
Fixed add and update provider queries
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhowell committed Nov 22, 2016
1 parent b6df3b5 commit d746696
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ public void updateContact(ReadableMap contact, Callback callback) {
ops.add(op.build());

op = ContentProviderOperation.newUpdate(ContactsContract.Data.CONTENT_URI)
.withSelection(ContactsContract.Data.CONTACT_ID + "=?", new String[]{String.valueOf(recordID)})
.withValue(ContactsContract.Data.MIMETYPE, Organization.CONTENT_ITEM_TYPE)
.withSelection(ContactsContract.Data.CONTACT_ID + "=? AND " + ContactsContract.Data.MIMETYPE + " = ?", new String[]{String.valueOf(recordID), Organization.CONTENT_ITEM_TYPE})
.withValue(Organization.COMPANY, company)
.withValue(Organization.TITLE, jobTitle);
ops.add(op.build());
Expand Down

0 comments on commit d746696

Please sign in to comment.