mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-17 06:27:29 +01:00
Add ability to tune reader threads and instant retry
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user