From 3f31152968731022c1f632b93fe1e551d4dcea3d Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 12 Apr 2020 18:54:17 -0400 Subject: [PATCH] Fix "no description" not showing sometimes --- .../java/eu/kanade/tachiyomi/ui/manga/MangaHeaderHolder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 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 7cb6de8b40..07d9592d8c 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 @@ -113,9 +113,9 @@ class MangaHeaderHolder( else { manga_author.text = "${manga.author?.trim()}, ${manga.artist}" } - manga_summary.text = manga.description?.trim() ?: itemView.context.getString( - R.string.no_description - ) + manga_summary.text = + if (manga.description.isNullOrBlank()) itemView.context.getString(R.string.no_description) + else manga.description?.trim() if (item.isLocked) sub_item_group.referencedIds = intArrayOf(R.id.manga_summary, R.id.manga_summary_label, R.id.button_layout)