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