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()
|
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()
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user