Add ability to tune reader threads and instant retry

This commit is contained in:
NerdNumber9
2018-06-09 23:12:53 -04:00
parent 4342584c32
commit 0f2be86d5a
5 changed files with 53 additions and 12 deletions

View File

@@ -166,4 +166,8 @@ object PreferenceKeys {
const val eh_hl_lastRealmIndex = "eh_hl_lastRealmIndex"
const val eh_expandFilters = "eh_expand_filters"
const val eh_readerThreads = "eh_reader_threads"
const val eh_readerInstantRetry = "eh_reader_instant_retry"
}

View File

@@ -238,4 +238,8 @@ class PreferencesHelper(val context: Context) {
// <-- EH
fun eh_expandFilters() = rxPrefs.getBoolean(Keys.eh_expandFilters, false)
fun eh_readerThreads() = rxPrefs.getInteger(Keys.eh_readerThreads, 2)
fun eh_readerInstantRetry() = rxPrefs.getBoolean(Keys.eh_readerInstantRetry, true)
}