mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-10-18 07:33:01 +00:00
Render peer notifications with quantity-aware strings
Split the existing PR change into a smaller reviewable piece. Original change: chore: retry intermittent baseline reassembly test
This commit is contained in:
parent
eb9bc9f27a
commit
88d86eba0f
@ -145,11 +145,11 @@ private class AndroidPeerAvailabilityTextProvider(
|
||||
}
|
||||
|
||||
override fun body(peerCount: Int): String {
|
||||
return if (peerCount == 1) {
|
||||
context.getString(R.string.notification_active_peers_one)
|
||||
} else {
|
||||
context.getString(R.string.notification_active_peers_many, peerCount)
|
||||
}
|
||||
return context.resources.getQuantityString(
|
||||
R.plurals.notification_active_peers_body,
|
||||
peerCount,
|
||||
peerCount
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user