This commit is contained in:
Jay 2020-05-04 15:42:05 -04:00
parent d3584fcc4f
commit 10d6a04051

View File

@ -146,10 +146,10 @@ class MangaHeaderHolder(
)
else manga_genres_tags.setTags(emptyList())
if (manga.author == manga.artist || manga.artist.isNullOrBlank()) manga_author.text =
manga.author?.trim()
else {
manga_author.text = "${manga.author?.trim()}, ${manga.artist}"
if (manga.author == manga.artist || manga.artist.isNullOrBlank()) {
manga_author.text = manga.author?.trim()
} else {
manga_author.text = listOfNotNull(manga.author?.trim(), manga.artist?.trim()).joinToString(", ")
}
manga_summary.text =
if (manga.description.isNullOrBlank()) itemView.context.getString(R.string.no_description)