Merge pull request #4762 from ByteHamster/parallel-downloads
Added number to parallel downloads string
This commit is contained in:
commit
540656f61c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -107,7 +107,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>
|
||||
|
|
Loading…
Reference in New Issue