Commit e4a101a2 authored by Eugene Shapovalov's avatar Eugene Shapovalov 💬

Hide TargetHeader body, when it is empty.

parent d8da1848
......@@ -64,13 +64,13 @@ class TargetHeaderAdapterDelegate(
this.item = item
with(itemView) {
titleTextView.text = item.title.getHumanName(resources)
Markwon.setText(descriptionTextView, item.body ?: "")
Markwon.setText(descriptionTextView, item.body)
descriptionTextView.movementMethod = null //disable internal link click
avatarImageView.loadRoundedImage(item.author.avatarUrl)
iconImageView.setImageResource(item.icon.getIcon())
dateTextView.text = item.date.humanTime(resources)
descriptionTextView.visible(item.body != null)
descriptionTextView.visible(item.body.isNotEmpty())
iconImageView.visible(item.icon != TargetHeaderIcon.NONE)
bindBadges(item.badges)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment