handle the new way of fetching private contacts

This commit is contained in:
tibbi 2021-04-14 19:25:02 +02:00
parent 2f6139e477
commit e2b8bb90a7
1 changed files with 2 additions and 2 deletions

View File

@ -507,7 +507,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
if (it) { if (it) {
SetRemindersDialog(this) { SetRemindersDialog(this) {
val reminders = it val reminders = it
val privateCursor = getMyContactsCursor()?.loadInBackground() val privateCursor = getMyContactsCursor(false, false)?.loadInBackground()
ensureBackgroundThread { ensureBackgroundThread {
val privateContacts = MyContactsContentProvider.getSimpleContacts(this, privateCursor) val privateContacts = MyContactsContentProvider.getSimpleContacts(this, privateCursor)
@ -536,7 +536,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
if (it) { if (it) {
SetRemindersDialog(this) { SetRemindersDialog(this) {
val reminders = it val reminders = it
val privateCursor = getMyContactsCursor()?.loadInBackground() val privateCursor = getMyContactsCursor(false, false)?.loadInBackground()
ensureBackgroundThread { ensureBackgroundThread {
val privateContacts = MyContactsContentProvider.getSimpleContacts(this, privateCursor) val privateContacts = MyContactsContentProvider.getSimpleContacts(this, privateCursor)