Recents: fix "only downloaded" badge option not working

This commit is contained in:
Jays2Kings 2022-08-30 14:47:01 -04:00
parent 0a0ac647a2
commit f3d75f43e7

View file

@ -176,7 +176,7 @@ class RecentMangaHolder(
fun notifyStatus(status: Download.State, progress: Int, isRead: Boolean, animated: Boolean = false) {
binding.downloadButton.downloadButton.setDownloadStatus(status, progress, animated)
val isChapterRead =
if (adapter.showDownloads == RecentMangaAdapter.ShowRecentsDLs.UnreadOrDownloaded) isRead else false
if (adapter.showDownloads == RecentMangaAdapter.ShowRecentsDLs.UnreadOrDownloaded) isRead else true
binding.downloadButton.downloadButton.isVisible =
when (adapter.showDownloads) {
RecentMangaAdapter.ShowRecentsDLs.UnreadOrDownloaded,