When user updated picture in editor, set the new picture as super primary so the change is reflected in the app

This commit is contained in:
Sylvain Berfini 2016-03-22 15:35:49 +01:00 committed by Jehan Monnier
parent db631fc1a7
commit 96c069a19b

View file

@ -141,6 +141,7 @@ public class LinphoneContact implements Serializable {
.withValue(ContactsContract.Data.RAW_CONTACT_ID, rawContactId)
.withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE)
.withValue(ContactsContract.CommonDataKinds.Photo.PHOTO, photo)
.withValue(ContactsContract.Data.IS_SUPER_PRIMARY, 1)
.build());
} else {
changesToCommit.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)