mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
add lora.ignoreIncoming config
This commit is contained in:
parent
2a25649766
commit
9e5cffbfb1
1 changed files with 13 additions and 0 deletions
|
|
@ -719,6 +719,19 @@ fun DeviceSettingsItemList(viewModel: UIViewModel) {
|
|||
}
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
EditTextPreference(title = "Ignore incoming", // FIXME use proper Composable component
|
||||
value = loraInput.ignoreIncomingList.getOrNull(0) ?: 0,
|
||||
enabled = connected,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = {
|
||||
loraInput = loraInput.copy {
|
||||
if (loraInput.ignoreIncomingCount == 0) ignoreIncoming.add(it)
|
||||
else ignoreIncoming[0] = it
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
PreferenceFooter(
|
||||
enabled = loraInput != localConfig.lora,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue