Skip to content

Commit

Permalink
Fix select server navigation on TV
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 23, 2024
1 parent e4b423e commit 349cbaa
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 349cbaa

Please sign in to comment.