Dropping the first cache change of chapters

in a random attempt fix cache closed issues
This commit is contained in:
Jays2Kings 2021-04-19 13:35:29 -04:00
parent 0492b2e1dd
commit d45d3014f4

View File

@ -13,6 +13,7 @@ import eu.kanade.tachiyomi.util.storage.saveTo
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.drop
import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.onEach
import okhttp3.Response import okhttp3.Response
@ -80,6 +81,7 @@ class ChapterCache(private val context: Context) {
init { init {
preferences.preloadSize().asFlow() preferences.preloadSize().asFlow()
.drop(1)
.onEach { .onEach {
// Save old cache for destruction later // Save old cache for destruction later
val oldCache = diskCache val oldCache = diskCache