one more minor refactoring

This commit is contained in:
tibbi 2016-09-17 22:13:20 +02:00
parent a0c427fedc
commit 23fc4556ce
1 changed files with 5 additions and 5 deletions

View File

@ -33,12 +33,12 @@ class EventsAdapter(context: Context, private val mEvents: List<Event>) : 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
end.visibility = View.INVISIBLE
} else {
viewHolder.end.text = Formatter.getTime(event.endTS)
end.text = Formatter.getTime(event.endTS)
}
}
return view