Fix UnreadOrDownloaded downloads button not working properly

This commit is contained in:
Jays2Kings 2021-04-14 02:39:23 -04:00
parent 820dfaf7b5
commit f0fbab56af
2 changed files with 4 additions and 4 deletions

View File

@ -17,9 +17,9 @@ class RecentMangaAdapter(val delegate: RecentsInterface) :
private val preferences: PreferencesHelper by injectLazy() private val preferences: PreferencesHelper by injectLazy()
var showDownloads = ShowRecentsDLs.All var showDownloads = preferences.showRecentsDownloads().get()
var showRemoveHistory = true var showRemoveHistory = preferences.showRecentsRemHistory().get()
var showTitleFirst = false var showTitleFirst = preferences.showTitleFirstInRecents().get()
val viewType: Int val viewType: Int
get() = delegate.getViewType() get() = delegate.getViewType()

View File

@ -146,7 +146,7 @@ class RecentMangaHolder(
when (adapter.showDownloads) { when (adapter.showDownloads) {
RecentMangaAdapter.ShowRecentsDLs.UnreadOrDownloaded, RecentMangaAdapter.ShowRecentsDLs.UnreadOrDownloaded,
RecentMangaAdapter.ShowRecentsDLs.OnlyDownloaded -> RecentMangaAdapter.ShowRecentsDLs.OnlyDownloaded ->
status !in Download.CHECKED..Download.NOT_DOWNLOADED && !isChapterRead status !in Download.CHECKED..Download.NOT_DOWNLOADED || !isChapterRead
else -> binding.downloadButton.downloadButton.isVisible else -> binding.downloadButton.downloadButton.isVisible
} }
} }