mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
get proper event type title at inserting caldav events
This commit is contained in:
@@ -20,7 +20,7 @@ import java.util.*
|
|||||||
class CalDAVEventsHandler(val context: Context) {
|
class CalDAVEventsHandler(val context: Context) {
|
||||||
fun refreshCalendars(callback: () -> Unit) {
|
fun refreshCalendars(callback: () -> Unit) {
|
||||||
getCalDAVCalendars(context.config.caldavSyncedCalendarIDs).forEach {
|
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)
|
CalDAVEventsHandler(context).fetchCalDAVCalendarEvents(it.id, eventTypeId)
|
||||||
}
|
}
|
||||||
context.scheduleCalDAVSync(true)
|
context.scheduleCalDAVSync(true)
|
||||||
|
Reference in New Issue
Block a user