Fix "no description" not showing sometimes

This commit is contained in:
Jay 2020-04-12 18:54:17 -04:00
parent 3a4780e19b
commit 3f31152968

View File

@ -113,9 +113,9 @@ class MangaHeaderHolder(
else { else {
manga_author.text = "${manga.author?.trim()}, ${manga.artist}" manga_author.text = "${manga.author?.trim()}, ${manga.artist}"
} }
manga_summary.text = manga.description?.trim() ?: itemView.context.getString( manga_summary.text =
R.string.no_description if (manga.description.isNullOrBlank()) itemView.context.getString(R.string.no_description)
) else manga.description?.trim()
if (item.isLocked) sub_item_group.referencedIds = if (item.isLocked) sub_item_group.referencedIds =
intArrayOf(R.id.manga_summary, R.id.manga_summary_label, R.id.button_layout) intArrayOf(R.id.manga_summary, R.id.manga_summary_label, R.id.button_layout)