Skip to content

Commit

Permalink
Query for non-null contact group titles
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Jan 27, 2020
1 parent 118da53 commit af62b06
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class CursorToContactGroupImpl @Inject constructor(
ContactsContract.Groups.TITLE)
private const val SELECTION = "${ContactsContract.Groups.AUTO_ADD}=0 " +
"AND ${ContactsContract.Groups.DELETED}=0 " +
"AND ${ContactsContract.Groups.FAVORITES}=0"
"AND ${ContactsContract.Groups.FAVORITES}=0 " +
"AND ${ContactsContract.Groups.TITLE} IS NOT NULL"

private const val ID = 0
private const val TITLE = 1
Expand Down

0 comments on commit af62b06

Please sign in to comment.