Fix recents download button not showing in some only unread cases

This commit is contained in:
Jays2Kings 2021-04-07 15:07:58 -04:00
parent b6d23ce9e0
commit e554fd3694

View File

@ -27,7 +27,7 @@ class RecentMangaHolder(
fun bind(item: RecentMangaItem, showDLs: RecentMangaAdapter.ShowRecentsDLs, showRemoveHistory: Boolean, showTitleFirst: Boolean) {
binding.downloadButton.downloadButton.isVisible = item.mch.manga.source != LocalSource.ID && when (showDLs) {
RecentMangaAdapter.ShowRecentsDLs.None -> false
RecentMangaAdapter.ShowRecentsDLs.OnlyUnread -> !item.mch.chapter.read
RecentMangaAdapter.ShowRecentsDLs.OnlyUnread -> !item.chapter.read
RecentMangaAdapter.ShowRecentsDLs.All -> true
}