Skip to content

Commit

Permalink
Merge branch 'change-server-function-not-working-on-mullvad-android-t…
Browse files Browse the repository at this point in the history
…v-droid-1373'
  • Loading branch information
Rawa committed Sep 23, 2024
2 parents e4b423e + 349cbaa commit 42c19f2
Showing 1 changed file with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,26 @@ fun RelayItemCell(
isSelected -> MaterialTheme.colorScheme.selected
else -> depth.toBackgroundColor()
}
)
.combinedClickable(
enabled = item.active,
onClick = onClick,
onLongClick = onLongClick,
)
.padding(start = startPadding),
),
verticalAlignment = Alignment.CenterVertically,
) {
if (leadingContent != null) {
leadingContent()
// Duplicate row is needed for selection of the item on TV.
Row(
modifier =
Modifier.combinedClickable(
enabled = item.active,
onClick = onClick,
onLongClick = onLongClick,
)
.padding(start = startPadding)
.weight(1f),
verticalAlignment = Alignment.CenterVertically,
) {
if (leadingContent != null) {
leadingContent()
}
Name(relay = item)
}
Name(modifier = Modifier.weight(1f), relay = item)

if (item.hasChildren) {
ExpandButton(
Expand Down

0 comments on commit 42c19f2

Please sign in to comment.