add the new event type to the list after creating
This commit is contained in:
parent
911c3a35dd
commit
3d51c9e6fa
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue