feat: Add Client Base role strings (#4227)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich
2026-01-15 10:40:21 -06:00
committed by GitHub
parent c8d2375aca
commit 1f07486745
2 changed files with 5 additions and 2 deletions

View File

@@ -77,6 +77,8 @@
<string name="role_client_desc">App connected or standalone messaging device.</string>
<string name="role_client_mute">Client Mute</string>
<string name="role_client_mute_desc">Device that does not forward packets from other devices.</string>
<string name="role_client_base">Client Base</string>
<string name="role_client_base_desc">Treats packets from or to favorited nodes as ROUTER_LATE, and all other packets as CLIENT.</string>
<string name="role_router">Router</string>
<string name="role_router_desc">Infrastructure node for extending network coverage by relaying messages. Visible in nodes list.</string>
<string name="role_router_client">Router Client</string>

View File

@@ -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 <https://www.gnu.org/licenses/>.
*/
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