mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-30 19:54:27 -04:00
add lora.ignoreIncoming config
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user