kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
feat: add `compassOrientation` config
rodzic
89a3ab0e7d
commit
caff97a5e6
app/src/main/java/com/geeksville/mesh/ui/components/config
|
@ -128,6 +128,17 @@ fun DisplayConfigItemList(
|
|||
}
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
DropDownPreference(title = "Compass orientation",
|
||||
enabled = enabled,
|
||||
items = DisplayConfig.CompassOrientation.entries
|
||||
.filter { it != DisplayConfig.CompassOrientation.UNRECOGNIZED }
|
||||
.map { it to it.name },
|
||||
selectedItem = displayInput.compassOrientation,
|
||||
onItemSelected = { displayInput = displayInput.copy { compassOrientation = it } })
|
||||
}
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
PreferenceFooter(
|
||||
enabled = displayInput != displayConfig,
|
||||
|
|
Ładowanie…
Reference in New Issue