diff --git a/app/src/main/java/to/bitkit/ui/components/BottomSheet.kt b/app/src/main/java/to/bitkit/ui/components/BottomSheet.kt index 906f56c9aa..93ebd9b0e6 100644 --- a/app/src/main/java/to/bitkit/ui/components/BottomSheet.kt +++ b/app/src/main/java/to/bitkit/ui/components/BottomSheet.kt @@ -53,6 +53,7 @@ fun BottomSheet( contentColor: Color = contentColorFor(containerColor), tonalElevation: Dp = 0.dp, scrimColor: Color = BottomSheetDefaults.ScrimColor, + showToastOverlay: Boolean = true, dragHandle: @Composable (() -> Unit)? = { Box( contentAlignment = Alignment.Center, @@ -92,7 +93,7 @@ fun BottomSheet( ) { content() } - if (app != null) { + if (showToastOverlay && app != null) { SheetToastHost( app = app, hazeState = toastHazeState, diff --git a/app/src/main/java/to/bitkit/ui/sheets/BoostTransactionSheet.kt b/app/src/main/java/to/bitkit/ui/sheets/BoostTransactionSheet.kt index c9fe07801d..5e2d16e558 100644 --- a/app/src/main/java/to/bitkit/ui/sheets/BoostTransactionSheet.kt +++ b/app/src/main/java/to/bitkit/ui/sheets/BoostTransactionSheet.kt @@ -102,7 +102,11 @@ fun BoostTransactionSheet( val uiState by viewModel.uiState.collectAsStateWithLifecycle() - BottomSheet(onDismissRequest = onDismiss) { + BottomSheet( + onDismissRequest = onDismiss, + scrimColor = Color.Transparent, + showToastOverlay = false, + ) { BoostTransactionContent( uiState = uiState, onClickEdit = viewModel::onClickEdit, diff --git a/changelog.d/next/1273.fixed.md b/changelog.d/next/1273.fixed.md new file mode 100644 index 0000000000..3c1bb4e729 --- /dev/null +++ b/changelog.d/next/1273.fixed.md @@ -0,0 +1 @@ +Fixed boost fee warning toasts appearing twice and dimmed behind the boost sheet.