mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-19 13:59:19 +00:00
Add: Releases and images cache retention options
This commit is contained in:
@ -24,6 +24,9 @@ object Preferences {
|
||||
private val keys = sequenceOf(
|
||||
Key.Language,
|
||||
Key.AutoSync,
|
||||
Key.AutoSyncInterval,
|
||||
Key.ReleasesCacheRetention,
|
||||
Key.ImagesCacheRetention,
|
||||
Key.InstallAfterSync,
|
||||
Key.IncompatibleVersions,
|
||||
Key.ShowScreenshots,
|
||||
@ -138,6 +141,11 @@ object Preferences {
|
||||
"auto_sync",
|
||||
Value.EnumerationValue(Preferences.AutoSync.Wifi)
|
||||
)
|
||||
|
||||
object ReleasesCacheRetention : Key<Int>("releases_cache_retention", Value.IntValue(1))
|
||||
|
||||
object ImagesCacheRetention : Key<Int>("images_cache_retention", Value.IntValue(14))
|
||||
|
||||
object AutoSyncInterval : Key<Int>("auto_sync_interval", Value.IntValue(60))
|
||||
|
||||
object InstallAfterSync :
|
||||
|
@ -29,6 +29,16 @@ class PrefsUpdatesFragment : PrefsNavFragmentX() {
|
||||
Preferences.AutoSync.Always -> getString(R.string.always)
|
||||
}
|
||||
}
|
||||
addEditInt(
|
||||
Preferences.Key.ImagesCacheRetention,
|
||||
getString(R.string.images_cache_retention),
|
||||
1..365
|
||||
)
|
||||
addEditInt(
|
||||
Preferences.Key.ReleasesCacheRetention,
|
||||
getString(R.string.releases_cache_retention),
|
||||
0..365
|
||||
)
|
||||
addEditInt(
|
||||
Preferences.Key.AutoSyncInterval,
|
||||
getString(R.string.auto_sync_interval),
|
||||
|
Reference in New Issue
Block a user