get proper event type title at inserting caldav events

This commit is contained in:
tibbi 2017-08-22 11:28:08 +02:00
parent a62fa7dd8e
commit 3f31762b3b
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import java.util.*
class CalDAVEventsHandler(val context: Context) {
fun refreshCalendars(callback: () -> Unit) {
getCalDAVCalendars(context.config.caldavSyncedCalendarIDs).forEach {
val eventTypeId = context.dbHelper.getEventTypeIdWithTitle(it.displayName)
val eventTypeId = context.dbHelper.getEventTypeIdWithTitle("${it.displayName} (${it.accountName})")
CalDAVEventsHandler(context).fetchCalDAVCalendarEvents(it.id, eventTypeId)
}
context.scheduleCalDAVSync(true)