Add optional to automatically download new chapers (#538)
* Add optional to automatically download new chapers * Only trigger download once
This commit is contained in:
@@ -89,6 +89,8 @@ class PreferenceKeys(context: Context) {
|
||||
|
||||
val startScreen = context.getString(R.string.pref_start_screen_key)
|
||||
|
||||
val downloadNew = context.getString(R.string.pref_download_new_key)
|
||||
|
||||
fun sourceUsername(sourceId: Int) = "pref_source_username_$sourceId"
|
||||
|
||||
fun sourcePassword(sourceId: Int) = "pref_source_password_$sourceId"
|
||||
|
||||
@@ -134,4 +134,6 @@ class PreferencesHelper(context: Context) {
|
||||
|
||||
fun hiddenCatalogues() = rxPrefs.getStringSet("hidden_catalogues", emptySet())
|
||||
|
||||
fun downloadNew() = prefs.getBoolean(keys.downloadNew, false)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user