mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix lat lon validation for fixed position (#537)
This commit is contained in:
parent
5c3595931f
commit
8dca9ea8b6
1 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ fun DeviceSettingsItemList(viewModel: UIViewModel) {
|
|||
enabled = connected,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = { value ->
|
||||
if (value >= -180 && value <= 180.0)
|
||||
if (value >= -90 && value <= 90.0)
|
||||
positionInfo?.let { positionInfo = it.copy(latitude = value) }
|
||||
})
|
||||
}
|
||||
|
|
@ -235,7 +235,7 @@ fun DeviceSettingsItemList(viewModel: UIViewModel) {
|
|||
enabled = connected,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = { value ->
|
||||
if (value >= -90 && value <= 90.0)
|
||||
if (value >= -180 && value <= 180.0)
|
||||
positionInfo?.let { positionInfo = it.copy(longitude = value) }
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue