mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
remove a redundant function
This commit is contained in:
@@ -34,16 +34,12 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteItemsListener {
|
|||||||
private fun getEventTypes() {
|
private fun getEventTypes() {
|
||||||
DBHelper.newInstance(applicationContext).getEventTypes {
|
DBHelper.newInstance(applicationContext).getEventTypes {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
gotEventTypes(it)
|
manage_event_types_list.adapter = EventTypeAdapter(this, it, this) {
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun gotEventTypes(eventTypes: List<EventType>) {
|
|
||||||
manage_event_types_list.adapter = EventTypeAdapter(this, eventTypes, this) {
|
|
||||||
showEventTypeDialog(it)
|
showEventTypeDialog(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun deleteItems(ids: ArrayList<Int>) {
|
override fun deleteItems(ids: ArrayList<Int>) {
|
||||||
if (ids.contains(DBHelper.REGULAR_EVENT_TYPE_ID)) {
|
if (ids.contains(DBHelper.REGULAR_EVENT_TYPE_ID)) {
|
||||||
|
Reference in New Issue
Block a user