load MyContactsCursor right at fetching
This commit is contained in:
parent
5df251048f
commit
332725a9fc
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ fun Context.getMyContactsCursor(favoritesOnly: Boolean, withPhoneNumbersOnly: Bo
|
|||
val getFavoritesOnly = if (favoritesOnly) "1" else "0"
|
||||
val getWithPhoneNumbersOnly = if (withPhoneNumbersOnly) "1" else "0"
|
||||
val args = arrayOf(getFavoritesOnly, getWithPhoneNumbersOnly)
|
||||
CursorLoader(this, MyContactsContentProvider.CONTACTS_CONTENT_URI, null, null, args, null)
|
||||
CursorLoader(this, MyContactsContentProvider.CONTACTS_CONTENT_URI, null, null, args, null).loadInBackground()
|
||||
} catch (e: Exception) {
|
||||
null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue