Skip to content

Commit 3d0451b

Browse files
committed
use String.format(getString(format), ...) instead of buggy getString(format, ...)
1 parent 711d189 commit 3d0451b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,6 @@ public static String getQuantityString(Context context, @StringRes int zero, @St
316316
if (count == 1) {
317317
return context.getString(one);
318318
}
319-
return context.getString(other, count);
319+
return String.format(context.getString(other), count);
320320
}
321321
}

0 commit comments

Comments
 (0)