Fix import of reader preferences in reader
(cherry picked from commit 90281affc4bcd12c07cb036f948497002f78c197)
This commit is contained in:
parent
0d894d5977
commit
230aec370c
@ -322,7 +322,7 @@ class ReaderViewModel(
|
|||||||
|
|
||||||
val context = Injekt.get<Application>()
|
val context = Injekt.get<Application>()
|
||||||
// val source = sourceManager.getOrStub(manga.source)
|
// val source = sourceManager.getOrStub(manga.source)
|
||||||
loader = ChapterLoader(context, downloadManager, downloadProvider, manga, source, /* SY --> */sourceManager, mergedReferences, mergedManga/* SY <-- */)
|
loader = ChapterLoader(context, downloadManager, downloadProvider, manga, source, /* SY --> */sourceManager, readerPreferences, mergedReferences, mergedManga/* SY <-- */)
|
||||||
|
|
||||||
loadChapter(loader!!, chapterList.first { chapterId == it.chapter.id } /* SY --> */, page/* SY <-- */)
|
loadChapter(loader!!, chapterList.first { chapterId == it.chapter.id } /* SY --> */, page/* SY <-- */)
|
||||||
Result.success(true)
|
Result.success(true)
|
||||||
|
@ -11,7 +11,7 @@ import eu.kanade.tachiyomi.source.SourceManager
|
|||||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||||
import eu.kanade.tachiyomi.source.online.all.MergedSource
|
import eu.kanade.tachiyomi.source.online.all.MergedSource
|
||||||
import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter
|
import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter
|
||||||
import exh.debug.DebugFunctions.readerPrefs
|
import eu.kanade.tachiyomi.ui.reader.setting.ReaderPreferences
|
||||||
import tachiyomi.core.util.lang.withIOContext
|
import tachiyomi.core.util.lang.withIOContext
|
||||||
import tachiyomi.core.util.system.logcat
|
import tachiyomi.core.util.system.logcat
|
||||||
import tachiyomi.domain.manga.model.Manga
|
import tachiyomi.domain.manga.model.Manga
|
||||||
@ -28,6 +28,7 @@ class ChapterLoader(
|
|||||||
private val source: Source,
|
private val source: Source,
|
||||||
// SY -->
|
// SY -->
|
||||||
private val sourceManager: SourceManager,
|
private val sourceManager: SourceManager,
|
||||||
|
private val readerPrefs: ReaderPreferences,
|
||||||
private val mergedReferences: List<MergedMangaReference>,
|
private val mergedReferences: List<MergedMangaReference>,
|
||||||
private val mergedManga: Map<Long, Manga>,
|
private val mergedManga: Map<Long, Manga>,
|
||||||
// SY <--
|
// SY <--
|
||||||
|
Loading…
x
Reference in New Issue
Block a user