mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
Fix UnreadOrDownloaded downloads button not working properly
This commit is contained in:
parent
820dfaf7b5
commit
f0fbab56af
@ -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()
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user