feat: added the option in the settings to delete all saved offline content.

This commit is contained in:
antonio 2023-08-06 00:01:02 +02:00
parent 05325913f7
commit 9d7acdb892
5 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="4dp"
android:text="@string/delete_download_storage_dialog_summary" />
</LinearLayout>

View file

@ -49,6 +49,10 @@
<string name="connection_alert_dialog_positive_button">OK</string>
<string name="connection_alert_dialog_title">Wi-Fi not connected</string>
<string name="connection_alert_dialog_summary">Access to the Subsonic server on connections other than Wi-Fi has been restricted. To prevent this alert dialod from reappearing, disable the connection check in the app settings.</string>
<string name="delete_download_storage_dialog_negative_button">Cancel</string>
<string name="delete_download_storage_dialog_positive_button">Continue</string>
<string name="delete_download_storage_dialog_summary">Please be aware that continuing with this action will result in the permanent deletion of all saved items downloaded from all servers.</string>
<string name="delete_download_storage_dialog_title">Delete saved items</string>
<string name="download_info_empty_subtitle">Once you download a song, you\'ll find it here</string>
<string name="download_info_empty_title">No downloads yet!</string>
<string name="download_title_section">Downloads</string>
@ -185,6 +189,8 @@
<string name="settings_covers_cache">Size of artwork cache</string>
<string name="settings_data_saving_mode_summary">In order to reduce data consumption, avoid downloading covers.</string>
<string name="settings_data_saving_mode_title">Limit mobile data usage</string>
<string name="settings_delete_download_storage_title">Delete saved items</string>
<string name="settings_delete_download_storage_summary">Proceeding will result in the irreversible deletion of all saved items.</string>
<string name="settings_download_storage_title">Download storage</string>
<string name="settings_equalizer_summary">Adjust audio settings</string>
<string name="settings_equalizer_title">Equalizer</string>

View file

@ -99,6 +99,11 @@
<Preference
android:key="download_storage"
app:title="@string/settings_download_storage_title" />
<Preference
android:key="delete_download_storage"
app:title="@string/settings_delete_download_storage_title"
app:summary="@string/settings_delete_download_storage_summary"/>
</PreferenceCategory>
<PreferenceCategory app:title="@string/settings_title_transcoding">