mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue