From bb3fdef40bebae7fcb3defe089c65008542bddbd Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Fri, 30 Jun 2023 10:39:43 +0800 Subject: [PATCH] Browse Source: clear search query when changing listing (#9652) --- .../ui/browse/source/browse/BrowseSourceScreenModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt index bc44ae9db..fd3006f81 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt @@ -150,7 +150,7 @@ class BrowseSourceScreenModel( } fun setListing(listing: Listing) { - mutableState.update { it.copy(listing = listing) } + mutableState.update { it.copy(listing = listing, toolbarQuery = null) } } fun setFilters(filters: FilterList) {