mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
catch and display exceptions thrown at querying contact sources
This commit is contained in:
@ -361,6 +361,8 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||
sources.add(contactSource)
|
||||
} while (cursor.moveToNext())
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
activity.showErrorToast(e)
|
||||
} finally {
|
||||
cursor?.close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user