mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix preload reader page setting not reflecting
This commit is contained in:
parent
8dda29c783
commit
ceb971302f
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package eu.kanade.tachiyomi.ui.reader.loader
|
||||
|
||||
import eu.kanade.tachiyomi.data.cache.ChapterCache
|
||||
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||
import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter
|
||||
|
@ -30,6 +31,7 @@ class HttpPageLoader(
|
|||
private val chapter: ReaderChapter,
|
||||
private val source: HttpSource,
|
||||
private val chapterCache: ChapterCache = Injekt.get(),
|
||||
private val preferences: PreferencesHelper = Injekt.get(),
|
||||
) : PageLoader() {
|
||||
|
||||
private val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
|
||||
|
@ -39,7 +41,7 @@ class HttpPageLoader(
|
|||
*/
|
||||
private val queue = PriorityBlockingQueue<PriorityPage>()
|
||||
|
||||
private val preloadSize = 4
|
||||
private val preloadSize = preferences.preloadSize().get()
|
||||
|
||||
init {
|
||||
scope.launchIO {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue