Correctly make balancePoints a plural string

This commit is contained in:
Sylvia van Os
2022-01-18 23:14:12 +01:00
parent 551fbed8ad
commit ce1a210650
24 changed files with 5 additions and 24 deletions

View File

@@ -206,7 +206,7 @@ public class Utils {
if (currency == null) {
numberFormat.setMaximumFractionDigits(0);
return context.getString(R.string.balancePoints, numberFormat.format(value));
return context.getResources().getQuantityString(R.plurals.balancePoints, value.intValue(), numberFormat.format(value));
}
NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();