fix missing strings reported by @Mango-sauce

This commit is contained in:
geeksville 2020-05-01 13:43:57 -07:00
parent 45a5d47d21
commit ee34a7a370
2 changed files with 9 additions and 3 deletions

View file

@ -330,9 +330,12 @@ class MeshService : Service(), Logging {
private val summaryString
get() = when (connectionState) {
ConnectionState.CONNECTED -> "Connected: $numOnlineNodes of $numNodes online"
ConnectionState.DISCONNECTED -> "Disconnected"
ConnectionState.DEVICE_SLEEP -> "Device sleeping"
ConnectionState.CONNECTED -> getString(R.string.connected_count).format(
numOnlineNodes,
numNodes
)
ConnectionState.DISCONNECTED -> getString(R.string.disconnected)
ConnectionState.DEVICE_SLEEP -> getString(R.string.device_sleeping)
}

View file

@ -50,4 +50,7 @@
<string name="pairing_failed_try_again">Pairing failed, please select again</string>
<string name="location_disabled">Location access is disabled, can not provide position to the mesh.</string>
<string name="share">Share</string>
<string name="disconnected">Disconnected</string>
<string name="device_sleeping">Device sleeping</string>
<string name="connected_count">Connected: %s of %s online</string>
</resources>