report all exceptions thrown during exporting contacts

This commit is contained in:
tibbi
2018-01-29 18:52:05 +01:00
parent b617676c34
commit 197eb7b60c
2 changed files with 53 additions and 47 deletions

View File

@ -69,6 +69,7 @@ fun Context.getContactUriRawId(uri: Uri): Int {
if (cursor.moveToFirst()) {
return cursor.getIntValue(ContactsContract.Contacts.NAME_RAW_CONTACT_ID)
}
} catch (ignored: Exception) {
} finally {
cursor?.close()
}