diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt index 4b2c8d7ba..b3d26be58 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt @@ -33,12 +33,12 @@ class EventsAdapter(context: Context, private val mEvents: List) : BaseAd title.text = event.title description.text = event.description start.text = Formatter.getTime(event.startTS) - } - if (event.startTS == event.endTS) { - viewHolder.end.visibility = View.INVISIBLE - } else { - viewHolder.end.text = Formatter.getTime(event.endTS) + if (event.startTS == event.endTS) { + end.visibility = View.INVISIBLE + } else { + end.text = Formatter.getTime(event.endTS) + } } return view