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) {
|
||||
return cursor.getIntValue(ContactsContract.DisplayPhoto.THUMBNAIL_MAX_DIM)
|
||||
}
|
||||
} catch (ignored: Exception) {
|
||||
} finally {
|
||||
cursor?.close()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue