mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-24 14:28:41 +02:00
catch exceptions thrown at getting default thumbnail size
This commit is contained in:
parent
9eb6b3c821
commit
82ca892e25
@ -153,6 +153,7 @@ fun Context.getPhotoThumbnailSize(): Int {
|
|||||||
if (cursor?.moveToFirst() == true) {
|
if (cursor?.moveToFirst() == true) {
|
||||||
return cursor.getIntValue(ContactsContract.DisplayPhoto.THUMBNAIL_MAX_DIM)
|
return cursor.getIntValue(ContactsContract.DisplayPhoto.THUMBNAIL_MAX_DIM)
|
||||||
}
|
}
|
||||||
|
} catch (ignored: Exception) {
|
||||||
} finally {
|
} finally {
|
||||||
cursor?.close()
|
cursor?.close()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user