Daily library updates are now the default for new users

This commit is contained in:
Jay 2020-04-30 19:25:48 -04:00
parent 575c1f0f70
commit 879a9c735c
3 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ object Migrations {
UpdaterJob.setupTask() UpdaterJob.setupTask()
} }
ExtensionUpdateJob.setupTask() ExtensionUpdateJob.setupTask()
LibraryUpdateJob.setupTask()
return BuildConfig.DEBUG return BuildConfig.DEBUG
} }

View File

@ -165,7 +165,7 @@ class PreferencesHelper(val context: Context) {
fun removeAfterMarkedAsRead() = prefs.getBoolean(Keys.removeAfterMarkedAsRead, false) fun removeAfterMarkedAsRead() = prefs.getBoolean(Keys.removeAfterMarkedAsRead, false)
fun libraryUpdateInterval() = rxPrefs.getInteger(Keys.libraryUpdateInterval, 0) fun libraryUpdateInterval() = rxPrefs.getInteger(Keys.libraryUpdateInterval, 24)
fun libraryUpdateRestriction() = prefs.getStringSet(Keys.libraryUpdateRestriction, emptySet()) fun libraryUpdateRestriction() = prefs.getStringSet(Keys.libraryUpdateRestriction, emptySet())

View File

@ -77,7 +77,7 @@ class SettingsLibraryController : SettingsController() {
R.string.every_2_days R.string.every_2_days
) )
entryValues = listOf(0, 1, 2, 3, 6, 12, 24, 48) entryValues = listOf(0, 1, 2, 3, 6, 12, 24, 48)
defaultValue = 0 defaultValue = 24
onChange { newValue -> onChange { newValue ->
// Always cancel the previous task, it seems that sometimes they are not updated. // Always cancel the previous task, it seems that sometimes they are not updated.