mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-27 08:16:36 +03:00
Update BrowseSourcePresenter.kt (#8040)
Set filters to default when reset is pressed.
This commit is contained in:
parent
2ced56e490
commit
ec34977a64
1 changed files with 2 additions and 1 deletions
|
@ -160,8 +160,9 @@ open class BrowseSourcePresenter(
|
|||
}
|
||||
|
||||
fun resetFilter() {
|
||||
state.filters = source!!.getFilterList()
|
||||
if (currentFilter !is Filter.UserInput) return
|
||||
state.currentFilter = (currentFilter as Filter.UserInput).copy(filters = source!!.getFilterList())
|
||||
state.currentFilter = (currentFilter as Filter.UserInput).copy(filters = state.filters)
|
||||
}
|
||||
|
||||
fun search(query: String? = null) {
|
||||
|
|
Loading…
Reference in a new issue