require Simple Thank You for color customization

This commit is contained in:
tibbi
2020-12-31 09:56:16 +01:00
parent e5ee3832b4
commit 8f4933b7a9
7 changed files with 38 additions and 11 deletions

View File

@ -75,7 +75,7 @@ class CallManager {
callback(callContact)
} else {
Handler(Looper.getMainLooper()).post {
val privateCursor = context.getMyContactsCursor().loadInBackground()
val privateCursor = context.getMyContactsCursor()?.loadInBackground()
ensureBackgroundThread {
val privateContacts = MyContactsContentProvider.getSimpleContacts(context, privateCursor)
val privateContact = privateContacts.firstOrNull { it.doesContainPhoneNumber(callContact.number) }