diff --git a/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/modules/ModulesScreen.kt b/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/modules/ModulesScreen.kt index 9be8a8e5..dcb93044 100644 --- a/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/modules/ModulesScreen.kt +++ b/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/modules/ModulesScreen.kt @@ -167,10 +167,7 @@ private fun TopBar( onQueryChange(it) query = it }, - onClose = { - onCloseSearch() - query = "" - }, + onClose = onCloseSearch, title = { TopAppBarTitle(text = stringResource(id = R.string.page_modules)) }, scrollBehavior = scrollBehavior, actions = { diff --git a/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/repository/RepositoryScreen.kt b/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/repository/RepositoryScreen.kt index 77bb75b5..8a2ace8b 100644 --- a/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/repository/RepositoryScreen.kt +++ b/app/src/main/kotlin/com/sanmer/mrepo/ui/screens/repository/RepositoryScreen.kt @@ -109,10 +109,7 @@ private fun TopBar( onQueryChange(it) query = it }, - onClose = { - onCloseSearch() - query = "" - }, + onClose = onCloseSearch, title = { TopAppBarTitle(text = stringResource(id = R.string.page_repository)) }, scrollBehavior = scrollBehavior, actions = {