|
@@ -144,10 +144,9 @@ open class BrowseSourceController(bundle: Bundle) :
|
|
filterSheet = SourceFilterSheet(
|
|
filterSheet = SourceFilterSheet(
|
|
activity!!,
|
|
activity!!,
|
|
onFilterClicked = {
|
|
onFilterClicked = {
|
|
- val allDefault = presenter.sourceFilters == presenter.source.getFilterList()
|
|
|
|
showProgressBar()
|
|
showProgressBar()
|
|
adapter?.clear()
|
|
adapter?.clear()
|
|
- presenter.setSourceFilter(if (allDefault) FilterList() else presenter.sourceFilters)
|
|
|
|
|
|
+ presenter.setSourceFilter(presenter.sourceFilters)
|
|
},
|
|
},
|
|
onResetClicked = {
|
|
onResetClicked = {
|
|
presenter.appliedFilters = FilterList()
|
|
presenter.appliedFilters = FilterList()
|
|
@@ -332,7 +331,7 @@ open class BrowseSourceController(bundle: Bundle) :
|
|
showProgressBar()
|
|
showProgressBar()
|
|
adapter?.clear()
|
|
adapter?.clear()
|
|
|
|
|
|
- presenter.restartPager(newQuery)
|
|
|
|
|
|
+ presenter.restartPager(newQuery, presenter.sourceFilters)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|