From 1f0748674538b0c1e24586db36cce1eda21bf377 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 15 Jan 2026 10:40:21 -0600 Subject: [PATCH] feat: Add Client Base role strings (#4227) Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .../src/commonMain/composeResources/values/strings.xml | 2 ++ .../feature/settings/radio/component/DeviceConfigItemList.kt | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/strings/src/commonMain/composeResources/values/strings.xml b/core/strings/src/commonMain/composeResources/values/strings.xml index dc6216732..f1ee4ff0d 100644 --- a/core/strings/src/commonMain/composeResources/values/strings.xml +++ b/core/strings/src/commonMain/composeResources/values/strings.xml @@ -77,6 +77,8 @@ App connected or standalone messaging device. Client Mute Device that does not forward packets from other devices. + Client Base + Treats packets from or to favorited nodes as ROUTER_LATE, and all other packets as CLIENT. Router Infrastructure node for extending network coverage by relaying messages. Visible in nodes list. Router Client diff --git a/feature/settings/src/main/kotlin/org/meshtastic/feature/settings/radio/component/DeviceConfigItemList.kt b/feature/settings/src/main/kotlin/org/meshtastic/feature/settings/radio/component/DeviceConfigItemList.kt index fe3cb1540..bb8976a99 100644 --- a/feature/settings/src/main/kotlin/org/meshtastic/feature/settings/radio/component/DeviceConfigItemList.kt +++ b/feature/settings/src/main/kotlin/org/meshtastic/feature/settings/radio/component/DeviceConfigItemList.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025 Meshtastic LLC + * Copyright (c) 2025-2026 Meshtastic LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - package org.meshtastic.feature.settings.radio.component import android.content.BroadcastReceiver @@ -94,6 +93,7 @@ import org.meshtastic.core.strings.rebroadcast_mode_known_only_desc import org.meshtastic.core.strings.rebroadcast_mode_local_only_desc import org.meshtastic.core.strings.rebroadcast_mode_none_desc import org.meshtastic.core.strings.role +import org.meshtastic.core.strings.role_client_base_desc import org.meshtastic.core.strings.role_client_desc import org.meshtastic.core.strings.role_client_hidden_desc import org.meshtastic.core.strings.role_client_mute_desc @@ -128,6 +128,7 @@ private val DeviceConfig.Role.description: StringResource get() = when (this) { DeviceConfig.Role.CLIENT -> Res.string.role_client_desc + DeviceConfig.Role.CLIENT_BASE -> Res.string.role_client_base_desc DeviceConfig.Role.CLIENT_MUTE -> Res.string.role_client_mute_desc DeviceConfig.Role.ROUTER -> Res.string.role_router_desc DeviceConfig.Role.ROUTER_CLIENT -> Res.string.role_router_client_desc