Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jul 25, 2024
1 parent 2efa4c2 commit ddadd73
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ private fun PreviewCheckableRelayLocationCell(
fun StatusRelayItemCell(
item: RelayItem,
isSelected: Boolean,
onClick: () -> Unit,
onLongClick: (() -> Unit)? = null,
onToggleExpand: ((Boolean) -> Unit),
isExpanded: Boolean,
depth: Int,
modifier: Modifier = Modifier,
onClick: () -> Unit = {},
onLongClick: (() -> Unit)? = null,
onToggleExpand: ((Boolean) -> Unit) = {},
isExpanded: Boolean = false,
depth: Int = 0,
activeColor: Color = MaterialTheme.colorScheme.selected,
inactiveColor: Color = MaterialTheme.colorScheme.error,
disabledColor: Color = MaterialTheme.colorScheme.onSecondary,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,11 @@ fun LazyItemScope.RelayLocationItem(
StatusRelayItemCell(
location,
relayItem.isSelected,
{ onSelectRelay() },
{ onLongClick() },
{ onExpand(it) },
relayItem.expanded,
relayItem.depth
onClick = { onSelectRelay() },
onLongClick = { onLongClick() },
onToggleExpand = { onExpand(it) },
isExpanded = relayItem.expanded,
depth = relayItem.depth
)
}

Expand All @@ -455,11 +455,10 @@ fun LazyItemScope.CustomListItem(
StatusRelayItemCell(
customListItem,
itemState.isSelected,
{ onSelectRelay(customListItem) },
{ onShowEditBottomSheet(customListItem) },
{ onExpand(customListItem.id, it) },
itemState.expanded,
0
onClick = { onSelectRelay(customListItem) },
onLongClick = { onShowEditBottomSheet(customListItem) },
onToggleExpand = { onExpand(customListItem.id, it) },
isExpanded = itemState.expanded
)
}

Expand All @@ -474,11 +473,11 @@ fun LazyItemScope.CustomListEntryItem(
StatusRelayItemCell(
customListEntryItem,
false,
onSelectRelay,
onShowEditCustomListEntryBottomSheet,
onToggleExpand,
itemState.expanded,
itemState.depth
onClick = onSelectRelay,
onLongClick = onShowEditCustomListEntryBottomSheet,
onToggleExpand = onToggleExpand,
isExpanded = itemState.expanded,
depth = itemState.depth
)
}

Expand Down

0 comments on commit ddadd73

Please sign in to comment.