Do not retry loading pages

GIF support in non-vertical pagers
Fix cache being double-opened
This commit is contained in:
NerdNumber9
2018-07-18 22:17:46 -04:00
parent 2fd4204db8
commit 840e571917
6 changed files with 65 additions and 5 deletions

View File

@@ -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())

View File

@@ -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")
}