mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
add the new event type to the list after creating
This commit is contained in:
@@ -98,7 +98,9 @@ class FetchGoogleEventsTask(val activity: Activity, credential: GoogleAccountCre
|
||||
}
|
||||
|
||||
if (eventTypeId == -1) {
|
||||
eventTypeId = dbHelper.insertEventType(EventType(0, eventType, activity.config.primaryColor))
|
||||
val newEventType = EventType(0, eventType, activity.config.primaryColor)
|
||||
eventTypeId = dbHelper.insertEventType(newEventType)
|
||||
eventTypes.add(newEventType)
|
||||
}
|
||||
|
||||
if (start.date != null) {
|
||||
|
Reference in New Issue
Block a user