mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-30 10:25:01 +01:00
fix a crash at trying to delete an event list section
This commit is contained in:
parent
74109796bb
commit
caae4a5f58
@ -189,8 +189,11 @@ class EventListAdapter(activity: SimpleActivity, var listItems: ArrayList<ListIt
|
||||
val timestamps = ArrayList<Int>(selectedPositions.size)
|
||||
|
||||
selectedPositions.forEach {
|
||||
eventIds.add((listItems[it] as ListEvent).id)
|
||||
timestamps.add((listItems[it] as ListEvent).startTS)
|
||||
val item = listItems[it]
|
||||
if (item is ListEvent) {
|
||||
eventIds.add(item.id)
|
||||
timestamps.add(item.startTS)
|
||||
}
|
||||
}
|
||||
|
||||
DeleteEventDialog(activity, eventIds) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user