Use current filters and toolbar query for saved searches
(cherry picked from commit fea36ad138)
This commit is contained in:
parent
82c2d06d3f
commit
06e4429b92
1 changed files with 2 additions and 2 deletions
|
|
@ -585,10 +585,10 @@ open class BrowseSourceScreenModel(
|
||||||
) {
|
) {
|
||||||
if (source !is CatalogueSource) return
|
if (source !is CatalogueSource) return
|
||||||
coroutineScope.launchNonCancellable {
|
coroutineScope.launchNonCancellable {
|
||||||
val query = state.value.listing.query?.takeUnless {
|
val query = state.value.toolbarQuery?.takeUnless {
|
||||||
it.isBlank() || it == GetRemoteManga.QUERY_POPULAR || it == GetRemoteManga.QUERY_LATEST
|
it.isBlank() || it == GetRemoteManga.QUERY_POPULAR || it == GetRemoteManga.QUERY_LATEST
|
||||||
}?.trim()
|
}?.trim()
|
||||||
val filterList = state.value.listing.filters.ifEmpty { source.getFilterList() }
|
val filterList = state.value.filters.ifEmpty { source.getFilterList() }
|
||||||
insertSavedSearch.await(
|
insertSavedSearch.await(
|
||||||
SavedSearch(
|
SavedSearch(
|
||||||
id = -1,
|
id = -1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue