Simplify the storage APIs use
* use Java I/O (classic way) on older android versions * use Storage Access Framework on newer android versions (Android Lollipop or later) * both changes have the external SD Card write permission * add option to ask the save path on each download * warn the user if the save paths are not defined, this only happens on the first NewPipe run (Android Lollipop or later)
This commit is contained in:
parent
d9fb7cb420
commit
b92b434e2c
9 changed files with 119 additions and 182 deletions
|
|
@ -160,20 +160,7 @@
|
|||
<string name="clear_views_history_key" translatable="false">clear_play_history</string>
|
||||
<string name="clear_search_history_key" translatable="false">clear_search_history</string>
|
||||
|
||||
<string name="downloads_storage_api" translatable="false">downloads_storage_api</string>
|
||||
|
||||
<!-- WARNING: changing the default value will require update the code too -->
|
||||
<string name="downloads_storage_api_default" translatable="false">javaIO</string>
|
||||
|
||||
<string-array name="downloads_storage_api_values" translatable="false">
|
||||
<item translatable="false">SAF</item>
|
||||
<item translatable="false">javaIO</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="downloads_storage_api_description" translatable="true">
|
||||
<item translatable="true">@string/storage_access_framework_description</item>
|
||||
<item translatable="true">@string/java_io_description</item>
|
||||
</string-array>
|
||||
<string name="downloads_storage_ask" translatable="false">downloads_storage_ask</string>
|
||||
|
||||
<!-- FileName Downloads -->
|
||||
<string name="settings_file_charset_key" translatable="false">file_rename_charset</string>
|
||||
|
|
|
|||
|
|
@ -550,14 +550,10 @@
|
|||
<string name="start_downloads">Start downloads</string>
|
||||
<string name="pause_downloads">Pause downloads</string>
|
||||
|
||||
<string name="downloads_storage">Storage API</string>
|
||||
<string name="downloads_storage_desc">Select which API use to store the downloads</string>
|
||||
|
||||
<string name="storage_access_framework_description">Storage Access Framework</string>
|
||||
<string name="java_io_description">Java I/O</string>
|
||||
|
||||
<string name="save_as">Save as…</string>
|
||||
|
||||
<string name="download_pick_path">Select the downloads save path</string>
|
||||
|
||||
<string name="downloads_storage_ask_title">Ask where to download</string>
|
||||
<string name="downloads_storage_ask_summary">You will be asked where to save each download</string>
|
||||
<string name="downloads_storage_ask_summary_kitkat">You will be asked where to save each download.\nEnable this option if you want download to the external SD Card</string>
|
||||
|
||||
</resources>
|
||||
Loading…
Add table
Add a link
Reference in a new issue