Repeat count for format args of plural string.

Fixes #8724
pull/9/head
Alan Evans 6 years ago committed by GitHub
parent d1b8e77fdc
commit 06ea000f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -243,13 +243,8 @@ public class IdentityUtil {
if (recipients.size() == 2) {
return context.getString(resourceTwo, firstName, secondName);
} else {
String nMore;
if (recipients.size() == 3) {
nMore = context.getResources().getQuantityString(R.plurals.identity_others, 1);
} else {
nMore = context.getResources().getQuantityString(R.plurals.identity_others, recipients.size() - 2);
}
int othersCount = recipients.size() - 2;
String nMore = context.getResources().getQuantityString(R.plurals.identity_others, othersCount, othersCount);
return context.getString(resourceMany, firstName, secondName, nMore);
}

Loading…
Cancel
Save