mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-27 16:26:29 +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() {
|
fun resetFilter() {
|
||||||
|
state.filters = source!!.getFilterList()
|
||||||
if (currentFilter !is Filter.UserInput) return
|
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) {
|
fun search(query: String? = null) {
|
||||||
|
|
Loading…
Reference in a new issue