Improve download manager. Add an option to select the number of threads for downloads.

This commit is contained in:
inorichi
2015-11-04 10:51:49 +01:00
parent 11638ae917
commit b0a8740e8d
9 changed files with 197 additions and 73 deletions

View File

@@ -14,4 +14,10 @@
<item>4</item>
</string-array>
<string-array name="download_threads">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
</resources>

View File

@@ -6,4 +6,5 @@
<string name="pref_fullscreen_key">pref_fullscreen_key</string>
<string name="pref_default_viewer_key">pref_default_viewer_key</string>
<string name="pref_download_directory_key">pref_download_directory_key</string>
<string name="pref_download_threads_key">pref_download_threads_key</string>
</resources>

View File

@@ -92,5 +92,6 @@
<string name="notification_completed">Update completed</string>
<string name="notification_no_new_chapters">No new chapters found</string>
<string name="notification_new_chapters">Found new chapters for:</string>
<string name="pref_download_threads">Download threads</string>
</resources>

View File

@@ -2,4 +2,11 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:orderingFromXml="true">
<ListPreference android:title="@string/pref_download_threads"
android:key="@string/pref_download_threads_key"
android:entries="@array/download_threads"
android:entryValues="@array/download_threads"
android:defaultValue="1"
android:summary="%s"/>
</PreferenceScreen>