DownloadPreference: Add a worker to regularly clear downloads cache
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user