From 2fb0969c756d5632cfec6cff608f74aa5f39bb3e Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 16 May 2020 16:38:43 -0400 Subject: [PATCH] Fix unread badges not hiding in list view --- .../java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt index 6615028120..e8cd29c5bf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt @@ -44,8 +44,8 @@ class LibraryListHolder( // Update the unread count and its visibility. with(unread_text) { - visibleIf { item.manga.unread > 0 } - text = item.manga.unread.toString() + visibleIf { item.unreadCount > 0 } + text = item.unreadCount.toString() } // Update the download count and its visibility. with(download_text) {