properly show favorite private contacts from Simple Contacts Pro

This commit is contained in:
tibbi
2020-06-19 11:32:48 +02:00
parent 2d59b72f25
commit 5cf3e25ef9
7 changed files with 16 additions and 7 deletions

View File

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