Added number to parallel downloads string

This commit is contained in:
ByteHamster 2020-12-15 16:51:45 +01:00
parent 66ee677ebe
commit 6ef80bd69e
2 changed files with 2 additions and 3 deletions

View File

@ -97,8 +97,7 @@ public class NetworkPreferencesFragment extends PreferenceFragmentCompat {
private void setParallelDownloadsText(int downloads) {
final Resources res = getActivity().getResources();
String s = String.format(Locale.getDefault(), "%d%s",
downloads, res.getString(R.string.parallel_downloads_suffix));
String s = res.getString(R.string.parallel_downloads, downloads);
findPreference(UserPreferences.PREF_PARALLEL_DOWNLOADS).setSummary(s);
}

View File

@ -105,7 +105,7 @@
<string name="feed_volume_reduction_off">Off</string>
<string name="feed_volume_reduction_light">Light</string>
<string name="feed_volume_reduction_heavy">Heavy</string>
<string name="parallel_downloads_suffix">\u0020parallel downloads</string>
<string name="parallel_downloads">%1$d parallel downloads</string>
<string name="feed_auto_download_global">Global default</string>
<string name="feed_auto_download_always">Always</string>
<string name="feed_auto_download_never">Never</string>