feat: add paxcounter threshold configs

This commit is contained in:
andrekir 2024-05-19 08:35:23 -03:00
parent 46c0dbd1a5
commit 5b64f9eaa5

View file

@ -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,