add the new event type to the list after creating

This commit is contained in:
tibbi 2017-07-17 19:16:18 +02:00
parent 911c3a35dd
commit 3d51c9e6fa
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ class FetchGoogleEventsTask(val activity: Activity, credential: GoogleAccountCre
} }
if (eventTypeId == -1) { 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) { if (start.date != null) {