catch and display exceptions thrown at querying contact sources
This commit is contained in:
parent
aef045f160
commit
f37d7a0d10
1 changed files with 2 additions and 0 deletions
|
@ -361,6 +361,8 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
|||
sources.add(contactSource)
|
||||
} while (cursor.moveToNext())
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
activity.showErrorToast(e)
|
||||
} finally {
|
||||
cursor?.close()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue