Browse Source

Only show library continue reading button if there's unread chapters

Closes #8865
arkon 2 years ago
parent
commit
5d90ba8aa0

+ 1 - 1
app/src/main/java/eu/kanade/presentation/library/components/LibraryComfortableGrid.kt

@@ -57,7 +57,7 @@ fun LibraryComfortableGrid(
                 },
                 onLongClick = { onLongClick(libraryItem.libraryManga) },
                 onClick = { onClick(libraryItem.libraryManga) },
-                onClickContinueReading = if (onClickContinueReading != null) {
+                onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
                     { onClickContinueReading(libraryItem.libraryManga) }
                 } else {
                     null

+ 1 - 1
app/src/main/java/eu/kanade/presentation/library/components/LibraryCompactGrid.kt

@@ -58,7 +58,7 @@ fun LibraryCompactGrid(
                 },
                 onLongClick = { onLongClick(libraryItem.libraryManga) },
                 onClick = { onClick(libraryItem.libraryManga) },
-                onClickContinueReading = if (onClickContinueReading != null) {
+                onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
                     { onClickContinueReading(libraryItem.libraryManga) }
                 } else {
                     null

+ 1 - 1
app/src/main/java/eu/kanade/presentation/library/components/LibraryList.kt

@@ -65,7 +65,7 @@ fun LibraryList(
                 },
                 onLongClick = { onLongClick(libraryItem.libraryManga) },
                 onClick = { onClick(libraryItem.libraryManga) },
-                onClickContinueReading = if (onClickContinueReading != null) {
+                onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
                     { onClickContinueReading(libraryItem.libraryManga) }
                 } else {
                     null