From db5e6f9216d00455b2600788d2b4d9169f83bbd5 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Thu, 6 May 2021 17:16:33 -0400 Subject: [PATCH] Fix dot seperator showing in reader chapters list when theres no scanlator --- .../eu/kanade/tachiyomi/ui/reader/chapter/ReaderChapterItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/chapter/ReaderChapterItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/chapter/ReaderChapterItem.kt index c16e9d7465..684af9bbd2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/chapter/ReaderChapterItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/chapter/ReaderChapterItem.kt @@ -50,7 +50,7 @@ class ReaderChapterItem(val chapter: Chapter, val manga: Manga, val isCurrent: B val statuses = mutableListOf() ChapterUtil.relativeDate(item)?.let { statuses.add(it) } - item.scanlator?.isNotBlank()?.let { statuses.add(item.scanlator ?: "") } + item.scanlator?.takeIf { it.isNotBlank() }?.let { statuses.add(item.scanlator ?: "") } if (item.isCurrent) { binding.chapterTitle.setTypeface(null, Typeface.BOLD_ITALIC)