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:
Taksh 2026-10-05 16:15:20 +05:30
parent eb9bc9f27a
commit 88d86eba0f

View File

@ -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
)
}
}