mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-30 18:34:52 +01:00
redraw whole EventList fragment if an event has been deleted
This commit is contained in:
parent
87c2e5b7bd
commit
372bafbd1d
@ -160,7 +160,7 @@ class EventListAdapter(activity: SimpleActivity, val listItems: ArrayList<ListIt
|
|||||||
} else {
|
} else {
|
||||||
listener?.addEventRepeatException(eventIds, timestamps)
|
listener?.addEventRepeatException(eventIds, timestamps)
|
||||||
}
|
}
|
||||||
removeSelectedItems()
|
finishActMode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,6 +118,7 @@ class EventListFragment : Fragment(), DeleteEventsListener {
|
|||||||
override fun deleteItems(ids: ArrayList<Int>) {
|
override fun deleteItems(ids: ArrayList<Int>) {
|
||||||
val eventIDs = Array(ids.size, { i -> (ids[i].toString()) })
|
val eventIDs = Array(ids.size, { i -> (ids[i].toString()) })
|
||||||
context!!.dbHelper.deleteEvents(eventIDs, true)
|
context!!.dbHelper.deleteEvents(eventIDs, true)
|
||||||
|
checkEvents()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun addEventRepeatException(parentIds: ArrayList<Int>, timestamps: ArrayList<Int>) {
|
override fun addEventRepeatException(parentIds: ArrayList<Int>, timestamps: ArrayList<Int>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user