DownloadPreference: Add a worker to regularly clear downloads cache

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-03-22 17:53:34 +05:30
parent 43e63a9452
commit 68733e1ec1
6 changed files with 114 additions and 1 deletions

View File

@@ -17,7 +17,8 @@
~
-->
<androidx.preference.PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.preference.PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreferenceCompat
app:defaultValue="true"
@@ -26,4 +27,15 @@
app:summary="@string/pref_install_delete_summary"
app:title="@string/pref_install_delete_title" />
<SeekBarPreference
android:defaultValue="6"
android:key="PREFERENCE_DOWNLOADS_CACHE_TIME"
android:max="24"
android:summary="@string/pref_download_cache_summary"
android:title="@string/pref_download_cache_title"
app:adjustable="true"
app:iconSpaceReserved="false"
app:min="1"
app:showSeekBarValue="true" />
</androidx.preference.PreferenceScreen>