Bladeren bron

Fix unread badges not hiding in list view

arkon 4 jaren geleden
bovenliggende
commit
2fb0969c75
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt

+ 2 - 2
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) {