Update BrowseSourcePresenter.kt (#8040)
Set filters to default when reset is pressed. (cherry picked from commit ec34977a64ae21c5dfe5533064882554ba964d44)
This commit is contained in:
parent
8fb2faca12
commit
02fe0df8f6
1 changed files with 2 additions and 1 deletions
|
|
@ -212,8 +212,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