Minor improvements to browse source
This commit is contained in:
parent
7920eeb278
commit
f28342601b
@ -110,7 +110,7 @@ fun BrowseSourceScreen(
|
||||
},
|
||||
floatingActionButton = {
|
||||
BrowseSourceFloatingActionButton(
|
||||
isVisible = presenter.filters.isNotEmpty() && presenter.currentFilter is BrowseSourcePresenter.Filter.UserInput,
|
||||
isVisible = presenter.filters.isNotEmpty()/* SY --> && presenter.currentFilter is BrowseSourcePresenter.Filter.UserInput <-- SY */,
|
||||
onFabClick = onFabClick,
|
||||
)
|
||||
},
|
||||
@ -200,7 +200,7 @@ fun BrowseSourceScreen(
|
||||
text = if (presenter.filters.isNotEmpty()) {
|
||||
stringResource(id = R.string.action_filter)
|
||||
} else {
|
||||
stringResource(id = R.string.saved_searches)
|
||||
stringResource(id = R.string.action_search)
|
||||
},
|
||||
)
|
||||
// SY <--
|
||||
|
@ -254,7 +254,6 @@ open class BrowseSourceController(bundle: Bundle) :
|
||||
val allDefault = search.filterList != null && presenter.filters == presenter.source!!.getFilterList()
|
||||
filterSheet?.dismiss()
|
||||
|
||||
filterSheet?.dismiss()
|
||||
presenter.searchQuery = search.query.nullIfBlank()
|
||||
presenter.setSourceFilter(if (allDefault) FilterList() else presenter.filters)
|
||||
presenter.search()
|
||||
|
Loading…
x
Reference in New Issue
Block a user