From 7773ead79b6a83517c380a3e114595bf1e382370 Mon Sep 17 00:00:00 2001 From: ganfra Date: Mon, 7 Sep 2026 18:56:25 +0200 Subject: [PATCH] Prevent location bottomsheet from being hidden --- .../android/features/location/impl/share/ShareLocationView.kt | 1 + .../android/features/location/impl/show/ShowLocationView.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt index 36827cc919..4151b5fce3 100644 --- a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt +++ b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt @@ -107,6 +107,7 @@ fun ShareLocationView( val scaffoldState = rememberBottomSheetScaffoldState( bottomSheetState = rememberBottomSheetState( initialValue = SheetValue.Expanded, + enabledValues = setOf(SheetValue.PartiallyExpanded, SheetValue.Expanded), ) ) val cameraState = rememberCameraState(firstPosition = MapDefaults.defaultCameraPosition) diff --git a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/show/ShowLocationView.kt b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/show/ShowLocationView.kt index 4600992cd5..1e4200c7d7 100644 --- a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/show/ShowLocationView.kt +++ b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/show/ShowLocationView.kt @@ -94,6 +94,7 @@ fun ShowLocationView( val scaffoldState = rememberBottomSheetScaffoldState( bottomSheetState = rememberBottomSheetState( initialValue = SheetValue.Expanded, + enabledValues = setOf(SheetValue.PartiallyExpanded, SheetValue.Expanded), ) ) LaunchedEffect(state.isSheetDraggable) {