diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt index 9b43a4cd1..36e060e94 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/ManageEventTypesActivity.kt @@ -34,17 +34,13 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteItemsListener { private fun getEventTypes() { DBHelper.newInstance(applicationContext).getEventTypes { runOnUiThread { - gotEventTypes(it) + manage_event_types_list.adapter = EventTypeAdapter(this, it, this) { + showEventTypeDialog(it) + } } } } - private fun gotEventTypes(eventTypes: List) { - manage_event_types_list.adapter = EventTypeAdapter(this, eventTypes, this) { - showEventTypeDialog(it) - } - } - override fun deleteItems(ids: ArrayList) { if (ids.contains(DBHelper.REGULAR_EVENT_TYPE_ID)) { toast(R.string.cannot_delete_default_type)