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

@ -15,7 +15,7 @@ class RecentsHelper(private val context: Context) {
@SuppressLint("MissingPermission")
fun getRecentCalls(callback: (ArrayList<RecentCall>) -> Unit) {
val privateCursor = context.getMyContactsCursor().loadInBackground()
val privateCursor = context.getMyContactsCursor()?.loadInBackground()
ensureBackgroundThread {
if (!context.hasPermission(PERMISSION_READ_CALL_LOG)) {
callback(ArrayList())