This commit is contained in:
MM20 2022-03-13 13:25:33 +01:00
parent 63201a5591
commit bab926be41
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -61,19 +61,6 @@ fun SearchBar(
val activityViewModel: LauncherActivityVM = viewModel()
val viewModel: SearchBarVM = viewModel()
val lifecycle = LocalLifecycleOwner.current.lifecycle
LaunchedEffect(null) {
lifecycle.repeatOnLifecycle(Lifecycle.State.RESUMED) {
try {
awaitCancellation()
} finally {
viewModel.setFocused(false)
}
}
}
val dataStore: LauncherDataStore by inject()
val style by remember { dataStore.data.map { it.searchBar.searchBarStyle } }