mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 15:01:52 +01:00
Dropping the first cache change of chapters
in a random attempt fix cache closed issues
This commit is contained in:
parent
0492b2e1dd
commit
d45d3014f4
@ -13,6 +13,7 @@ import eu.kanade.tachiyomi.util.storage.saveTo
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.flow.drop
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import okhttp3.Response
|
||||
@ -80,6 +81,7 @@ class ChapterCache(private val context: Context) {
|
||||
|
||||
init {
|
||||
preferences.preloadSize().asFlow()
|
||||
.drop(1)
|
||||
.onEach {
|
||||
// Save old cache for destruction later
|
||||
val oldCache = diskCache
|
||||
|
Loading…
Reference in New Issue
Block a user