mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 12:08:56 +01:00
Do not retry loading pages
GIF support in non-vertical pagers Fix cache being double-opened
This commit is contained in:
@@ -52,7 +52,7 @@ class ChapterCache(private val context: Context) {
|
||||
// --> EH
|
||||
private var diskCache = setupDiskCache(prefs.eh_cacheSize().getOrDefault().toLong())
|
||||
init {
|
||||
prefs.eh_cacheSize().asObservable().subscribe {
|
||||
prefs.eh_cacheSize().asObservable().skip(1).subscribe {
|
||||
// Save old cache for destruction later
|
||||
val oldCache = diskCache
|
||||
diskCache = setupDiskCache(it.toLong())
|
||||
|
||||
@@ -246,5 +246,5 @@ class PreferencesHelper(val context: Context) {
|
||||
|
||||
fun eh_utilAutoscrollInterval() = rxPrefs.getFloat(Keys.eh_utilAutoscrollInterval, 3f)
|
||||
|
||||
fun eh_cacheSize() = rxPrefs.getString(Keys.eh_utilAutoscrollInterval, "75")
|
||||
fun eh_cacheSize() = rxPrefs.getString(Keys.eh_cacheSize, "75")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user