feat: add new configs

This commit is contained in:
andrekir 2023-09-29 22:31:22 -03:00
parent e690e34347
commit 3188706776
2 changed files with 18 additions and 0 deletions

View file

@ -122,6 +122,16 @@ fun DeviceConfigItemList(
}
item { Divider() }
item {
SwitchPreference(title = "Disable triple-click",
checked = deviceInput.disableTripleClick,
enabled = enabled,
onCheckedChange = {
deviceInput = deviceInput.copy { disableTripleClick = it }
})
}
item { Divider() }
item {
PreferenceFooter(
enabled = deviceInput != deviceConfig,

View file

@ -173,6 +173,14 @@ fun PositionConfigItemList(
onValueChanged = { positionInput = positionInput.copy { txGpio = it } })
}
item {
EditTextPreference(title = "Redefine PIN_GPS_EN",
value = positionInput.gpsEnGpio,
enabled = enabled,
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
onValueChanged = { positionInput = positionInput.copy { gpsEnGpio = it } })
}
item {
PreferenceFooter(
enabled = positionInput != positionConfig || locationInput != location,