one more minor refactoring
This commit is contained in:
parent
a0c427fedc
commit
23fc4556ce
|
@ -33,12 +33,12 @@ class EventsAdapter(context: Context, private val mEvents: List<Event>) : BaseAd
|
||||||
title.text = event.title
|
title.text = event.title
|
||||||
description.text = event.description
|
description.text = event.description
|
||||||
start.text = Formatter.getTime(event.startTS)
|
start.text = Formatter.getTime(event.startTS)
|
||||||
}
|
|
||||||
|
|
||||||
if (event.startTS == event.endTS) {
|
if (event.startTS == event.endTS) {
|
||||||
viewHolder.end.visibility = View.INVISIBLE
|
end.visibility = View.INVISIBLE
|
||||||
} else {
|
} else {
|
||||||
viewHolder.end.text = Formatter.getTime(event.endTS)
|
end.text = Formatter.getTime(event.endTS)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return view
|
return view
|
||||||
|
|
Loading…
Reference in New Issue