Update connected count string in strings.xml and MeshService.kt

The string "Connected: %1$s of %2$s online" in strings.xml has been changed to "Connected: %1$s online".
The corresponding change has been made in MeshService.kt to use the updated string format, removing the reference to numNodes.
pull/1776/head
James Rich 2025-04-22 08:59:32 -05:00
rodzic a28b03fde7
commit 9a713e89b2
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -228,8 +228,7 @@ class MeshService : Service(), Logging {
private val notificationSummary
get() = when (connectionState) {
ConnectionState.CONNECTED -> getString(R.string.connected_count).format(
numOnlineNodes,
numNodes
numOnlineNodes
)
ConnectionState.DISCONNECTED -> getString(R.string.disconnected)
ConnectionState.DEVICE_SLEEP -> getString(R.string.device_sleeping)

Wyświetl plik

@ -117,7 +117,7 @@
<string name="share">Share</string>
<string name="disconnected">Disconnected</string>
<string name="device_sleeping">Device sleeping</string>
<string name="connected_count">Connected: %1$s of %2$s online</string>
<string name="connected_count">Connected: %1$s online</string>
<string name="update_firmware">Update Firmware</string>
<string name="ip_address">IP Address:</string>
<string name="connected">Connected to radio</string>