Fix missing quantity strings

This commit is contained in:
Mygod
2020-07-07 06:59:06 +08:00
parent d2f9f592a5
commit b7d01333fd
3 changed files with 9 additions and 4 deletions

View File

@@ -183,8 +183,8 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
WifiApManager.channelWidthLookup(bandwidth, true))
} else null,
capability?.let { (maxSupportedClients, supportedFeatures) ->
app.getString(R.string.tethering_manage_wifi_capabilities, numClients ?: "?",
maxSupportedClients, sequence {
app.resources.getQuantityString(R.plurals.tethering_manage_wifi_capabilities, maxSupportedClients,
numClients ?: "?", maxSupportedClients, sequence {
var features = supportedFeatures
if (features == 0L) yield(parent.getString(R.string.tethering_manage_wifi_no_features))
else while (features != 0L) {