Skip to content

Commit

Permalink
fix: attachment width and android 14 crash on start [WPB-5101] (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas committed Oct 26, 2023
1 parent 7320d6b commit a7f109a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fun AttachmentOptionsComponent(
BoxWithConstraints(Modifier.fillMaxSize()) {
val fullWidth: Dp = with(density) { constraints.maxWidth.toDp() }
val minPadding: Dp = dimensions().spacing2x
val minColumnWidth: Dp = with(density) { maxTextWidth.toDp() + dimensions().spacing24x }
val minColumnWidth: Dp = with(density) { maxTextWidth.toDp() + dimensions().spacing28x }
val visibleAttachmentOptions = attachmentOptions.filter { it.shouldShow }
val params by remember(fullWidth, visibleAttachmentOptions.size) {
derivedStateOf {
Expand Down
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ androidx-biometric = "1.1.0"

# Compose
composeBom = "2023.10.00" # TODO check if in new version [anchoredDraggable] is available
compose-activity = "1.8.0"
compose-compiler = "1.5.2"
compose-constraint = "1.0.1"
compose-navigation = "2.7.3" # adjusted to work with compose-destinations "1.9.54"
Expand Down Expand Up @@ -159,7 +160,6 @@ hilt-work = { module = "androidx.hilt:hilt-work", version.ref = "hilt-work" }

# Compose BOM
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
compose-activity = { module = "androidx.activity:activity-compose" }
compose-foundation = { module = "androidx.compose.foundation:foundation" }
compose-material-core = { module = "androidx.compose.material:material" }
compose-material-icons = { module = "androidx.compose.material:material-icons-extended" }
Expand All @@ -173,6 +173,7 @@ compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
compose-ui-preview = { module = "androidx.compose.ui:ui-tooling-preview" }

# Compose other
compose-activity = { module = "androidx.activity:activity-compose", version.ref = "compose-activity" }
compose-constraintLayout = { module = "androidx.constraintlayout:constraintlayout-compose", version.ref = "compose-constraint" }
compose-navigation = { module = "androidx.navigation:navigation-compose", version.ref = "compose-navigation" }
compose-destinations-core = { module = "io.github.raamcosta.compose-destinations:animations-core", version.ref = "compose-destinations" }
Expand Down

0 comments on commit a7f109a

Please sign in to comment.