fix empty bottom sheets closing themselves

This commit is contained in:
MM20
2026-05-31 17:06:44 +02:00
parent 9953139619
commit be745484c5
2 changed files with 2 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ fun <T> DismissableBottomSheet(
.widthIn(max = BottomSheetDefaults.SheetMaxWidth)
.align(Alignment.BottomCenter)
.wrapContentHeight()
.heightIn(max = maxHeight)
.heightIn(min = 96.dp, max = maxHeight)
.graphicsLayer {
translationY = draggableState.offset.coerceAtMost(0f) + sheetHeight
}

View File

@@ -13,7 +13,6 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.browser.customtabs.CustomTabColorSchemeParams
import androidx.browser.customtabs.CustomTabsIntent
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.background
@@ -866,7 +865,7 @@ fun ColumnScope.ConfigureCalendarWidget(
calendars?.any { it.types.contains(CalendarListType.Tasks) } == true
}
AnimatedVisibility(hasTasks) {
if (hasTasks) {
OutlinedCard {
Column(
modifier = Modifier.fillMaxWidth()