Skip to content

Commit f37d7a0

Browse files
committed
catch and display exceptions thrown at querying contact sources
1 parent aef045f commit f37d7a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
361361
sources.add(contactSource)
362362
} while (cursor.moveToNext())
363363
}
364+
} catch (e: Exception) {
365+
activity.showErrorToast(e)
364366
} finally {
365367
cursor?.close()
366368
}

0 commit comments

Comments
 (0)