redraw whole EventList fragment if an event has been deleted

This commit is contained in:
tibbi 2017-12-01 20:42:17 +01:00
parent 87c2e5b7bd
commit 372bafbd1d
2 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class EventListAdapter(activity: SimpleActivity, val listItems: ArrayList<ListIt
} else {
listener?.addEventRepeatException(eventIds, timestamps)
}
removeSelectedItems()
finishActMode()
}
}
}

View File

@ -118,6 +118,7 @@ class EventListFragment : Fragment(), DeleteEventsListener {
override fun deleteItems(ids: ArrayList<Int>) {
val eventIDs = Array(ids.size, { i -> (ids[i].toString()) })
context!!.dbHelper.deleteEvents(eventIDs, true)
checkEvents()
}
override fun addEventRepeatException(parentIds: ArrayList<Int>, timestamps: ArrayList<Int>) {