mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Feat/2061 public ind (#2284)
This commit is contained in:
parent
80723c59cc
commit
3d9b69eda5
5 changed files with 92 additions and 14 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue