From 10d6a04051a65e5369009677ae8d5dc805ca984a Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 4 May 2020 15:42:05 -0400 Subject: [PATCH] Fixed #323 --- .../eu/kanade/tachiyomi/ui/manga/MangaHeaderHolder.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaHeaderHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaHeaderHolder.kt index 7c3f34eee7..13b3be80dc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaHeaderHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaHeaderHolder.kt @@ -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)