kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
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
rodzic
a28b03fde7
commit
9a713e89b2
|
@ -228,8 +228,7 @@ class MeshService : Service(), Logging {
|
||||||
private val notificationSummary
|
private val notificationSummary
|
||||||
get() = when (connectionState) {
|
get() = when (connectionState) {
|
||||||
ConnectionState.CONNECTED -> getString(R.string.connected_count).format(
|
ConnectionState.CONNECTED -> getString(R.string.connected_count).format(
|
||||||
numOnlineNodes,
|
numOnlineNodes
|
||||||
numNodes
|
|
||||||
)
|
)
|
||||||
ConnectionState.DISCONNECTED -> getString(R.string.disconnected)
|
ConnectionState.DISCONNECTED -> getString(R.string.disconnected)
|
||||||
ConnectionState.DEVICE_SLEEP -> getString(R.string.device_sleeping)
|
ConnectionState.DEVICE_SLEEP -> getString(R.string.device_sleeping)
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
<string name="share">Share</string>
|
<string name="share">Share</string>
|
||||||
<string name="disconnected">Disconnected</string>
|
<string name="disconnected">Disconnected</string>
|
||||||
<string name="device_sleeping">Device sleeping</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="update_firmware">Update Firmware</string>
|
||||||
<string name="ip_address">IP Address:</string>
|
<string name="ip_address">IP Address:</string>
|
||||||
<string name="connected">Connected to radio</string>
|
<string name="connected">Connected to radio</string>
|
||||||
|
|
Ładowanie…
Reference in New Issue