From 9aa676333c1e9263138ae0fe55a9152dca33f867 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 11 Oct 2021 14:33:20 -0400 Subject: [PATCH] Use default source filters in global search (fixes #5583) Based on https://github.com/Jays2Kings/tachiyomiJ2K/commit/45fbd9d2f5eba03f0734a58ad46de16a047ae783 --- .../ui/browse/source/globalsearch/GlobalSearchPresenter.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt index 240ee26c4c..a2391459ba 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt @@ -9,7 +9,6 @@ import eu.kanade.tachiyomi.extension.ExtensionManager import eu.kanade.tachiyomi.source.CatalogueSource import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.source.SourceManager -import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.MangasPage import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.model.toSManga @@ -165,7 +164,7 @@ open class GlobalSearchPresenter( fetchSourcesSubscription = Observable.from(sources) .flatMap( { source -> - Observable.defer { source.fetchSearchManga(1, query, FilterList()) } + Observable.defer { source.fetchSearchManga(1, query, source.getFilterList()) } .subscribeOn(Schedulers.io()) .onErrorReturn { MangasPage(emptyList(), false) } // Ignore timeouts or other exceptions .map { it.mangas }