remove a redundant function
This commit is contained in:
parent
e1b40ba61c
commit
a837ace498
1 changed files with 3 additions and 7 deletions
|
@ -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<EventType>) {
|
||||
manage_event_types_list.adapter = EventTypeAdapter(this, eventTypes, this) {
|
||||
showEventTypeDialog(it)
|
||||
}
|
||||
}
|
||||
|
||||
override fun deleteItems(ids: ArrayList<Int>) {
|
||||
if (ids.contains(DBHelper.REGULAR_EVENT_TYPE_ID)) {
|
||||
toast(R.string.cannot_delete_default_type)
|
||||
|
|
Loading…
Reference in a new issue