diff --git a/core/ui/src/main/kotlin/ru/tech/imageresizershrinker/core/ui/widget/sheets/ProcessImagesPreferenceSheet.kt b/core/ui/src/main/kotlin/ru/tech/imageresizershrinker/core/ui/widget/sheets/ProcessImagesPreferenceSheet.kt index da75f76fe..271019d41 100644 --- a/core/ui/src/main/kotlin/ru/tech/imageresizershrinker/core/ui/widget/sheets/ProcessImagesPreferenceSheet.kt +++ b/core/ui/src/main/kotlin/ru/tech/imageresizershrinker/core/ui/widget/sheets/ProcessImagesPreferenceSheet.kt @@ -55,6 +55,8 @@ fun ProcessImagesPreferenceSheet( onDismiss: () -> Unit, onNavigate: (Screen) -> Unit ) { + val scope = rememberCoroutineScope() + EnhancedModalBottomSheet( title = { TitleItem( @@ -72,7 +74,6 @@ fun ProcessImagesPreferenceSheet( }, sheetContent = { val urisCorrespondingScreens by uris.screenList(extraImageType) - val scope = rememberCoroutineScope() Box(Modifier.fillMaxWidth()) { LazyVerticalStaggeredGrid(