From 23fc4556cec29ba70ba099e1014c678633296661 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 17 Sep 2016 22:13:20 +0200 Subject: [PATCH] one more minor refactoring --- .../calendar/adapters/EventsAdapter.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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