Add optional to automatically download new chapers (#538)

* Add optional to automatically download new chapers

* Only trigger download once
This commit is contained in:
Robin Appelman
2016-12-06 17:22:03 +01:00
committed by inorichi
parent 30b4c6e755
commit 8b60d5bfcb
7 changed files with 51 additions and 14 deletions
@@ -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)
}