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),
|
||||
|
|
|
|||
|
|
@ -899,4 +899,6 @@
|
|||
<string name="secondary_channel_position_feature">Disabling position on the primary channel allows periodic position broadcasts on the first secondary channel with the position enabled, otherwise manual position request required.</string>
|
||||
<string name="device_configuration">Device configuration</string>
|
||||
<string name="remotely_administrating">"[Remote] %1$s"</string>
|
||||
<string name="device_telemetry_enabled">Send Device Telemetry</string>
|
||||
<string name="device_telemetry_enabled_summary">Enable/Disable the device telemetry module to send metrics to the mesh</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue