Add initial support for external storage

This commit is contained in:
Rahul Kumar Patel
2021-02-24 15:34:21 +05:30
parent 3d00fc7691
commit 55865d3ce5
9 changed files with 40 additions and 17 deletions

View File

@@ -27,6 +27,7 @@
android:orientation="horizontal">
<ViewStub
android:id="@+id/header_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"

View File

@@ -234,6 +234,8 @@
<string name="pref_dialog_to_apply_restart">"This setting will be applied after you restart the app"</string>
<string name="pref_downloader_active_summary">"Maximum number of active downloads"</string>
<string name="pref_downloader_active_title">"Active download"</string>
<string name="pref_downloader_external">"User external storage"</string>
<string name="pref_downloader_external_desc">"External storage will be used for downloads, exports etc."</string>
<string name="pref_filter_fdroid_summary">"Removes F-Droid apps from app lists"</string>
<string name="pref_filter_fdroid_title">"Filter F-Droid apps"</string>
<string name="pref_filter_google_summary">"Removes all Google Apps from search results and category apps"</string>

View File

@@ -20,6 +20,13 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_DOWNLOAD_EXTERNAL"
app:summary="@string/pref_downloader_external_desc"
app:title="@string/pref_downloader_external" />
<SeekBarPreference
android:defaultValue="3"
android:key="PREFERENCE_DOWNLOAD_ACTIVE"