Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit ae5d609

Browse files
authored
Make AndroidContact and AndroidGroup sync adapter content URIs public (#53)
1 parent 13840ad commit ae5d609

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/src/main/kotlin/at/bitfire/vcard4android/AndroidContact.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@ open class AndroidContact(
206206

207207
// helpers
208208

209-
protected fun rawContactSyncURI(): Uri {
209+
fun rawContactSyncURI(): Uri {
210210
val id = requireNotNull(id)
211211
return addressBook.syncAdapterURI(ContentUris.withAppendedId(RawContacts.CONTENT_URI, id))
212212
}
213213

214-
protected fun dataSyncURI() = addressBook.syncAdapterURI(ContactsContract.Data.CONTENT_URI)
214+
fun dataSyncURI() = addressBook.syncAdapterURI(ContactsContract.Data.CONTENT_URI)
215215

216216
override fun toString() =
217217
"AndroidContact(id=$id, fileName=$fileName, eTag=$eTag, _contact=$_contact)"

lib/src/main/kotlin/at/bitfire/vcard4android/AndroidGroup.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ open class AndroidGroup(
164164

165165
// helpers
166166

167-
private fun groupSyncURI(): Uri {
167+
fun groupSyncURI(): Uri {
168168
val id = requireNotNull(id)
169169
return addressBook.syncAdapterURI(ContentUris.withAppendedId(Groups.CONTENT_URI, id))
170170
}

0 commit comments

Comments
 (0)