mirror of
https://github.com/bleackstorm/satiea.git
synced 2026-12-03 07:41:56 +01:00
fix(ui): always honor ModalBottomSheet dismiss during AI loading to prevent app freeze
This commit is contained in:
1 parent
7181ea58fc
commit
e3bd4d3312
5 files changed
+12
-21
No files matched your search
@@ -87,11 +87,7 @@ fun ReceiptReviewSheet(
|
||||
var alsoCheckShoppingList by remember { mutableStateOf(true) }
|
||||
|
||||
ModalBottomSheet(
|
||||
onDismissRequest = {
|
||||
if (scanState !is ReceiptScanUiState.Scanning) {
|
||||
onDismiss()
|
||||
}
|
||||
},
|
||||
onDismissRequest = onDismiss,
|
||||
sheetState = sheetState,
|
||||
shape = RoundedCornerShape(topStart = 24.dp, topEnd = 24.dp)
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user