mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(settings): add device telemetry toggle (#3166)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
b98e533123
commit
ce8bd943d8
2 changed files with 12 additions and 0 deletions
|
|
@ -55,6 +55,16 @@ fun TelemetryConfigScreen(navController: NavController, viewModel: RadioConfigVi
|
|||
) {
|
||||
item { PreferenceCategory(text = stringResource(R.string.telemetry_config)) }
|
||||
|
||||
item {
|
||||
SwitchPreference(
|
||||
title = stringResource(R.string.device_telemetry_enabled),
|
||||
summary = stringResource(R.string.device_telemetry_enabled_summary),
|
||||
checked = formState.value.deviceTelemetryEnabled,
|
||||
enabled = state.connected,
|
||||
onCheckedChange = { formState.value = formState.value.copy { deviceTelemetryEnabled = it } },
|
||||
)
|
||||
}
|
||||
|
||||
item {
|
||||
EditTextPreference(
|
||||
title = stringResource(R.string.device_metrics_update_interval_seconds),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue