Clear search filter after validation.

This commit is contained in:
Thomas Andres Gomez 2022-10-26 09:15:58 +02:00
parent eadaf7ef4f
commit 29a427ac5a
3 changed files with 3 additions and 9 deletions

View file

@ -3,4 +3,3 @@
* Profile refresh. * Profile refresh.
* especially when no mail available. * especially when no mail available.
* Profile dialog close button. * Profile dialog close button.
* Delete search query on search filter when re-enter.

View file

@ -2,6 +2,7 @@
> Not yet > Not yet
* Fix SignIn and EditProfile Url. * Fix SignIn and EditProfile Url.
* Fix Search IME padding. * Fix Search IME padding.
* Clear search filter after validation.
# 0.1.3 # 0.1.3
> Published 25 October 2022 > Published 25 October 2022

View file

@ -71,13 +71,6 @@ fun FilterSearchPage(
viewModel?.updateSearch(criteria = it) viewModel?.updateSearch(criteria = it)
}, },
onClose = { onClose = {
when (filter) {
SearchType.Author -> bookSearchViewModel.filterAuthor(null)
SearchType.Series -> bookSearchViewModel.filterSeries(null)
SearchType.Genre -> bookSearchViewModel.filterGenre(null)
SearchType.Language -> bookSearchViewModel.filterLanguage(null)
else -> Unit
}
scope.launch { scope.launch {
bottomSearchState.collapse() bottomSearchState.collapse()
} }
@ -92,6 +85,7 @@ fun FilterSearchPage(
} }
scope.launch { scope.launch {
bottomSearchState.collapse() bottomSearchState.collapse()
viewModel?.updateSearch(criteria = null)
} }
} }
) )