add the check to daily view too

This commit is contained in:
tibbi 2016-12-03 11:15:44 +01:00
parent bcad8aafef
commit 97ee44979e
2 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class EventListAdapter(val activity: SimpleActivity, val mItems: List<ListItem>,
event_item_title.text = item.title
event_item_description.text = item.description
event_item_start.text = Formatter.getTime(item.startTS)
toggleItemSelection(itemView, markedItems.contains(pos), pos)
toggleItemSelection(this, markedItems.contains(pos), pos)
if (item.startTS == item.endTS) {
event_item_end.visibility = View.INVISIBLE

View File

@ -94,6 +94,7 @@ class EventsAdapter(val activity: SimpleActivity, val mItems: List<Event>, val l
event_item_title.text = event.title
event_item_description.text = event.description
event_item_start.text = Formatter.getTime(event.startTS)
toggleItemSelection(this, markedItems.contains(pos), pos)
if (event.startTS == event.endTS) {
event_item_end.visibility = View.INVISIBLE