diff --git a/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt b/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt index e0f39237e..d46431848 100644 --- a/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt +++ b/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt @@ -328,10 +328,11 @@ abstract class SyncManager, out CollectionType: L private fun logSyncTime() { val serviceType = when (authority) { - CalendarContract.AUTHORITY -> Service.TYPE_CALDAV - ContactsContract.AUTHORITY, - context.getString(R.string.address_books_authority) -> Service.TYPE_CARDDAV - else -> throw IllegalArgumentException("Invalid authority") + ContactsContract.AUTHORITY, // Contacts + context.getString(R.string.address_books_authority) -> // Address books + Service.TYPE_CARDDAV + else -> // Calendars + other (ie. tasks) + Service.TYPE_CALDAV } val db = EntryPointAccessors.fromApplication(context, SyncManagerEntryPoint::class.java).appDatabase() db.runInTransaction {