Added number to parallel downloads string
This commit is contained in:
parent
66ee677ebe
commit
6ef80bd69e
|
@ -97,8 +97,7 @@ public class NetworkPreferencesFragment extends PreferenceFragmentCompat {
|
||||||
private void setParallelDownloadsText(int downloads) {
|
private void setParallelDownloadsText(int downloads) {
|
||||||
final Resources res = getActivity().getResources();
|
final Resources res = getActivity().getResources();
|
||||||
|
|
||||||
String s = String.format(Locale.getDefault(), "%d%s",
|
String s = res.getString(R.string.parallel_downloads, downloads);
|
||||||
downloads, res.getString(R.string.parallel_downloads_suffix));
|
|
||||||
findPreference(UserPreferences.PREF_PARALLEL_DOWNLOADS).setSummary(s);
|
findPreference(UserPreferences.PREF_PARALLEL_DOWNLOADS).setSummary(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
<string name="feed_volume_reduction_off">Off</string>
|
<string name="feed_volume_reduction_off">Off</string>
|
||||||
<string name="feed_volume_reduction_light">Light</string>
|
<string name="feed_volume_reduction_light">Light</string>
|
||||||
<string name="feed_volume_reduction_heavy">Heavy</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_global">Global default</string>
|
||||||
<string name="feed_auto_download_always">Always</string>
|
<string name="feed_auto_download_always">Always</string>
|
||||||
<string name="feed_auto_download_never">Never</string>
|
<string name="feed_auto_download_never">Never</string>
|
||||||
|
|
Loading…
Reference in New Issue