mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-07-03 14:06:34 +02:00
feat: add paxcounter threshold configs
This commit is contained in:
+20
@@ -53,6 +53,26 @@ fun PaxcounterConfigItemList(
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
EditTextPreference(title = "WiFi RSSI threshold (defaults to -80)",
|
||||
value = paxcounterInput.wifiThreshold,
|
||||
enabled = enabled,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = {
|
||||
paxcounterInput = paxcounterInput.copy { wifiThreshold = it }
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
EditTextPreference(title = "BLE RSSI threshold (defaults to -80)",
|
||||
value = paxcounterInput.bleThreshold,
|
||||
enabled = enabled,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = {
|
||||
paxcounterInput = paxcounterInput.copy { bleThreshold = it }
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
PreferenceFooter(
|
||||
enabled = paxcounterInput != paxcounterConfig,
|
||||
|
||||
Reference in New Issue
Block a user