mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add managed mode
This commit is contained in:
parent
a316495545
commit
0c78bc4e49
5 changed files with 23 additions and 11 deletions
|
|
@ -113,6 +113,16 @@ fun DeviceConfigItemList(
|
|||
}
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
SwitchPreference(title = "Managed mode",
|
||||
checked = deviceInput.isManaged,
|
||||
enabled = enabled,
|
||||
onCheckedChange = {
|
||||
deviceInput = deviceInput.copy { isManaged = it }
|
||||
})
|
||||
}
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
PreferenceFooter(
|
||||
enabled = deviceInput != deviceConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue