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

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)