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()
var showDownloads = ShowRecentsDLs.All
var showRemoveHistory = true
var showTitleFirst = false
var showDownloads = preferences.showRecentsDownloads().get()
var showRemoveHistory = preferences.showRecentsRemHistory().get()
var showTitleFirst = preferences.showTitleFirstInRecents().get()
val viewType: Int
get() = delegate.getViewType()

View File

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