mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-01-31 10:52:29 -05:00
fix(ScannedQrCodeDialog): "Add" button action
This commit is contained in:
@@ -140,12 +140,10 @@ fun ScannedQrCodeDialog(
|
||||
Button(
|
||||
enabled = totalCount <= 8,
|
||||
onClick = {
|
||||
val appended = incoming.copy {
|
||||
val result = settings.filterIndexed { i, _ ->
|
||||
val appended = currentChannelSet.copy {
|
||||
val result = incoming.settingsList.filterIndexed { i, _ ->
|
||||
channelSelections.getOrNull(i) == true
|
||||
}
|
||||
settings.clear()
|
||||
settings.addAll(currentChannelSet.settingsList)
|
||||
settings.addAll(result)
|
||||
}
|
||||
onDismiss.invoke()
|
||||
|
||||
Reference in New Issue
Block a user