mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
set target SDK to 30, updating kotlin, commons, gradle
This commit is contained in:
@ -633,7 +633,7 @@ class ContactsHelper(val context: Context) {
|
||||
|
||||
try {
|
||||
val results = context.contentResolver.applyBatch(AUTHORITY, operations)
|
||||
val rawId = ContentUris.parseId(results[0].uri)
|
||||
val rawId = ContentUris.parseId(results[0].uri!!)
|
||||
return Group(rawId, title)
|
||||
} catch (e: Exception) {
|
||||
context.showErrorToast(e)
|
||||
@ -1340,7 +1340,7 @@ class ContactsHelper(val context: Context) {
|
||||
}
|
||||
|
||||
// fullsize photo
|
||||
val rawId = ContentUris.parseId(results[0].uri)
|
||||
val rawId = ContentUris.parseId(results[0].uri!!)
|
||||
if (contact.photoUri.isNotEmpty() && fullSizePhotoData != null) {
|
||||
addFullSizePhoto(rawId, fullSizePhotoData)
|
||||
}
|
||||
|
Reference in New Issue
Block a user