From afcf4b298863ae0537c8b32420bf75670be94dd2 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Tue, 1 Nov 2022 03:22:53 +0600 Subject: [PATCH] Fix resetting filter resets browse pager (#8394) Fix resetinf filter resets browse pager --- .../tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt index 67a9220ec7..929bf0c656 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt @@ -156,8 +156,6 @@ open class BrowseSourcePresenter( fun reset() { val source = source ?: return state.filters = source.getFilterList() - if (currentFilter !is Filter.UserInput) return - state.currentFilter = (currentFilter as Filter.UserInput).copy(filters = state.filters) } fun search(query: String? = null, filters: FilterList? = null) {