Skip to content

Commit

Permalink
Make AndroidContact and AndroidGroup sync adapter content URIs public
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Nov 4, 2024
1 parent 13840ad commit 7aeec5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ open class AndroidContact(

// helpers

protected fun rawContactSyncURI(): Uri {
fun rawContactSyncURI(): Uri {
val id = requireNotNull(id)
return addressBook.syncAdapterURI(ContentUris.withAppendedId(RawContacts.CONTENT_URI, id))
}

protected fun dataSyncURI() = addressBook.syncAdapterURI(ContactsContract.Data.CONTENT_URI)
fun dataSyncURI() = addressBook.syncAdapterURI(ContactsContract.Data.CONTENT_URI)

override fun toString() =
"AndroidContact(id=$id, fileName=$fileName, eTag=$eTag, _contact=$_contact)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ open class AndroidGroup(

// helpers

private fun groupSyncURI(): Uri {
fun groupSyncURI(): Uri {
val id = requireNotNull(id)
return addressBook.syncAdapterURI(ContentUris.withAppendedId(Groups.CONTENT_URI, id))
}
Expand Down

0 comments on commit 7aeec5e

Please sign in to comment.