Skip to content

Commit

Permalink
feat: add paxcounter threshold configs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed May 19, 2024
1 parent 46c0dbd commit 5b64f9e
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5b64f9e

Please sign in to comment.