kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
feat: add mqtt.root config
rodzic
a5a6061c20
commit
5599a5d2a5
|
@ -123,6 +123,19 @@ fun ModuleSettingsItemList(viewModel: UIViewModel = viewModel()) {
|
|||
}
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
EditTextPreference(title = "Root topic",
|
||||
value = mqttInput.root,
|
||||
maxSize = 15, // root max_size:16
|
||||
enabled = connected,
|
||||
isError = false,
|
||||
keyboardOptions = KeyboardOptions.Default.copy(
|
||||
keyboardType = KeyboardType.Text, imeAction = ImeAction.Done
|
||||
),
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = { mqttInput = mqttInput.copy { root = it } })
|
||||
}
|
||||
|
||||
item {
|
||||
PreferenceFooter(
|
||||
enabled = mqttInput != moduleConfig.mqtt,
|
||||
|
|
Ładowanie…
Reference in New Issue