show only contact groups where System_ID is null

This commit is contained in:
tibbi 2018-03-18 11:52:14 +01:00
parent 8ad98e7c12
commit 27855ca574

View file

@ -363,7 +363,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
ContactsContract.Groups.TITLE
)
val selection = "${ContactsContract.Groups.AUTO_ADD} = ? AND ${ContactsContract.Groups.FAVORITES} = ?"
val selection = "${ContactsContract.Groups.AUTO_ADD} = ? AND ${ContactsContract.Groups.FAVORITES} = ? AND ${ContactsContract.Groups.SYSTEM_ID} IS NULL"
val selectionArgs = arrayOf("0", "0")
var cursor: Cursor? = null