mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
handle photo changing at contact update
This commit is contained in:
@ -291,9 +291,8 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
|||||||
|
|
||||||
// photo
|
// photo
|
||||||
when (photoUpdateStatus) {
|
when (photoUpdateStatus) {
|
||||||
PHOTO_ADDED -> addPhoto(contact, operations)
|
PHOTO_ADDED, PHOTO_CHANGED -> addPhoto(contact, operations)
|
||||||
PHOTO_REMOVED -> removePhoto(contact, operations)
|
PHOTO_REMOVED -> removePhoto(contact, operations)
|
||||||
PHOTO_CHANGED -> {}
|
|
||||||
}
|
}
|
||||||
activity.contentResolver.applyBatch(ContactsContract.AUTHORITY, operations)
|
activity.contentResolver.applyBatch(ContactsContract.AUTHORITY, operations)
|
||||||
true
|
true
|
||||||
|
Reference in New Issue
Block a user