mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
do not filter out not-dirty accounts
This commit is contained in:
parent
ba6f2a213e
commit
4da25f25f2
@ -28,11 +28,9 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||
ContactsContract.RawContacts.ACCOUNT_NAME
|
||||
)
|
||||
|
||||
val selection = "${ContactsContract.RawContacts.DIRTY} = ?"
|
||||
val selectionArgs = arrayOf("0")
|
||||
var cursor: Cursor? = null
|
||||
try {
|
||||
cursor = activity.contentResolver.query(uri, projection, selection, selectionArgs, null)
|
||||
cursor = activity.contentResolver.query(uri, projection, null, null, null)
|
||||
if (cursor?.moveToFirst() == true) {
|
||||
do {
|
||||
val name = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME)
|
||||
|
Loading…
x
Reference in New Issue
Block a user