mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 11:17:25 +01:00
Update BrowseSourcePresenter.kt (#8040)
Set filters to default when reset is pressed.
This commit is contained in:
parent
2ced56e490
commit
ec34977a64
@ -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 New Issue
Block a user