mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add BluetoothConfig.fixedPin validation
This commit is contained in:
parent
eaaadf3b34
commit
22e83ba953
1 changed files with 4 additions and 1 deletions
|
|
@ -792,7 +792,10 @@ fun DeviceSettingsItemList(viewModel: UIViewModel) {
|
|||
value = bluetoothInput.fixedPin,
|
||||
enabled = connected,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = { bluetoothInput = bluetoothInput.copy { fixedPin = it } })
|
||||
onValueChanged = {
|
||||
if (it.toString().length == 6) // ensure 6 digits
|
||||
bluetoothInput = bluetoothInput.copy { fixedPin = it }
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue