Add autoscroll support

This commit is contained in:
NerdNumber9
2018-06-10 00:50:17 -04:00
parent ad2819a3bc
commit b6a3f6ebd2
6 changed files with 196 additions and 7 deletions

View File

@@ -170,4 +170,8 @@ object PreferenceKeys {
const val eh_readerThreads = "eh_reader_threads"
const val eh_readerInstantRetry = "eh_reader_instant_retry"
const val eh_utilAutoscrollState = "eh_util_autoscroll_state"
const val eh_utilAutoscrollInterval = "eh_util_autoscroll_interval"
}

View File

@@ -242,4 +242,8 @@ class PreferencesHelper(val context: Context) {
fun eh_readerThreads() = rxPrefs.getInteger(Keys.eh_readerThreads, 2)
fun eh_readerInstantRetry() = rxPrefs.getBoolean(Keys.eh_readerInstantRetry, true)
fun eh_utilAutoscrollState() = rxPrefs.getBoolean(Keys.eh_utilAutoscrollState, false)
fun eh_utilAutoscrollInterval() = rxPrefs.getFloat(Keys.eh_utilAutoscrollInterval, 3f)
}