Skip to content

Commit

Permalink
use String.format(getString(format), ...) instead of buggy getString(…
Browse files Browse the repository at this point in the history
…format, ...)
  • Loading branch information
maxme committed Mar 10, 2016
1 parent 86e6f3d commit a11f2f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,6 @@ public static String getQuantityString(Context context, @StringRes int zero, @St
if (count == 1) {
return context.getString(one);
}
return context.getString(other, count);
return String.format(context.getString(other), count);
}
}

0 comments on commit a11f2f1

Please sign in to comment.