mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 08:05:22 +00:00
implement review comments
This commit is contained in:
@@ -51,7 +51,7 @@ fun LocationNotesButton(
|
|||||||
|
|
||||||
// Only show in mesh mode when location is authorized (iOS pattern)
|
// Only show in mesh mode when location is authorized (iOS pattern)
|
||||||
if (selectedLocationChannel is ChannelID.Mesh && locationEnabled) {
|
if (selectedLocationChannel is ChannelID.Mesh && locationEnabled) {
|
||||||
val hasNotes = (notesCount ?: 0) > 0
|
val hasNotes = notesCount > 0
|
||||||
IconButton(
|
IconButton(
|
||||||
onClick = onClick,
|
onClick = onClick,
|
||||||
modifier = modifier.size(24.dp)
|
modifier = modifier.size(24.dp)
|
||||||
|
|||||||
@@ -62,8 +62,10 @@ private fun LocationNotesErrorSheet(
|
|||||||
onDismiss: () -> Unit,
|
onDismiss: () -> Unit,
|
||||||
locationManager: LocationChannelManager
|
locationManager: LocationChannelManager
|
||||||
) {
|
) {
|
||||||
|
val sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)
|
||||||
ModalBottomSheet(
|
ModalBottomSheet(
|
||||||
onDismissRequest = onDismiss,
|
onDismissRequest = onDismiss,
|
||||||
|
sheetState = sheetState,
|
||||||
containerColor = MaterialTheme.colorScheme.surface
|
containerColor = MaterialTheme.colorScheme.surface
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
|
|||||||
Reference in New Issue
Block a user