mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Allow FilterList to be passed with default values (#5716)
This commit is contained in:
parent
0ab0dd95ae
commit
91fbccdbaa
1 changed files with 2 additions and 3 deletions
|
@ -144,10 +144,9 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||
filterSheet = SourceFilterSheet(
|
||||
activity!!,
|
||||
onFilterClicked = {
|
||||
val allDefault = presenter.sourceFilters == presenter.source.getFilterList()
|
||||
showProgressBar()
|
||||
adapter?.clear()
|
||||
presenter.setSourceFilter(if (allDefault) FilterList() else presenter.sourceFilters)
|
||||
presenter.setSourceFilter(presenter.sourceFilters)
|
||||
},
|
||||
onResetClicked = {
|
||||
presenter.appliedFilters = FilterList()
|
||||
|
@ -332,7 +331,7 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||
showProgressBar()
|
||||
adapter?.clear()
|
||||
|
||||
presenter.restartPager(newQuery)
|
||||
presenter.restartPager(newQuery, presenter.sourceFilters)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue