Feat/2061 public ind (#2284)

This commit is contained in:
DaneEvans 2025-06-29 12:45:12 +10:00 committed by GitHub
parent 80723c59cc
commit 3d9b69eda5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 92 additions and 14 deletions

View file

@ -448,9 +448,13 @@ private fun ChannelListView(
AdaptiveTwoPane(
first = {
channelSet.settingsList.forEachIndexed { index, channel ->
val isDefaultPSK = (channel.psk.size() == 1 && channel.psk.byteAt(0) == 1.toByte()) ||
channel.psk.toByteArray().isEmpty()
val displayTitle = channel.name.ifEmpty { modemPresetName }
ChannelSelection(
index = index,
title = channel.name.ifEmpty { modemPresetName },
title = displayTitle,
enabled = enabled,
isSelected = channelSelections[index],
onSelected = {
@ -458,6 +462,7 @@ private fun ChannelListView(
channelSelections[index] = it
}
},
isDefaultPSK = isDefaultPSK
)
}
OutlinedButton(