fix: Show gallery in MediaPickerBottomSheet only when not editing an item
This commit is contained in:
@@ -136,7 +136,8 @@ fun MediaPickerBottomSheet(
|
|||||||
val textColor = if (isDarkTheme) Color.White else Color.Black
|
val textColor = if (isDarkTheme) Color.White else Color.Black
|
||||||
val secondaryTextColor = if (isDarkTheme) Color(0xFF8E8E93) else Color(0xFF8E8E93)
|
val secondaryTextColor = if (isDarkTheme) Color(0xFF8E8E93) else Color(0xFF8E8E93)
|
||||||
|
|
||||||
if (isVisible) {
|
// Show gallery only if not editing
|
||||||
|
if (isVisible && editingItem == null) {
|
||||||
ModalBottomSheet(
|
ModalBottomSheet(
|
||||||
onDismissRequest = onDismiss,
|
onDismissRequest = onDismiss,
|
||||||
containerColor = backgroundColor,
|
containerColor = backgroundColor,
|
||||||
|
|||||||
Reference in New Issue
Block a user