mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix to the popular page for sources
This commit is contained in:
parent
ee90967e15
commit
85609b1c80
1 changed files with 6 additions and 2 deletions
|
@ -148,10 +148,14 @@ open class BrowseSourcePresenter(
|
|||
*/
|
||||
fun restartPager(query: String = this.query, filters: FilterList = this.appliedFilters) {
|
||||
this.query = query
|
||||
this.appliedFilters = filters.ifEmpty { source.getFilterList() }
|
||||
this.appliedFilters = filters
|
||||
|
||||
// Create a new pager.
|
||||
pager = createPager(query, appliedFilters)
|
||||
pager = createPager(
|
||||
query,
|
||||
filters.takeIf { it.isNotEmpty() || query.isBlank() }
|
||||
?: source.getFilterList(),
|
||||
)
|
||||
|
||||
val sourceId = source.id
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue