Skip to content

Commit

Permalink
Merge branch 'expandcollapse-of-connection-card-does-not-animate-droi…
Browse files Browse the repository at this point in the history
…d-1694'
  • Loading branch information
Rawa committed Dec 19, 2024
2 parents 6039cb1 + 50af239 commit b49a484
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,16 @@ private fun ConnectionCard(

Logger.d("Tunnelstate: ${state.tunnelState}, expanded: $expanded")
AnimatedContent(
(state.tunnelState as? TunnelState.Connected)?.featureIndicators,
(state.tunnelState as? TunnelState.Connected)?.featureIndicators to expanded,
modifier = Modifier.weight(1f, fill = false),
label = "connection_card_connection_details",
) { featureIndicators ->
) { (featureIndicators, exp) ->
if (featureIndicators != null) {
ConnectionInfo(
featureIndicators,
(state.tunnelState as? TunnelState.Connected)?.toConnectionsDetails(),
expanded,
onToggleExpand = { expanded = !expanded },
exp,
onToggleExpand = { expanded = !exp },
)
} else {
Spacer(Modifier.height(Dimens.smallSpacer))
Expand Down

0 comments on commit b49a484

Please sign in to comment.