|
@@ -365,6 +365,10 @@ class ReaderViewModel(
|
|
|
* that the user doesn't have to wait too long to continue reading.
|
|
|
*/
|
|
|
private suspend fun preload(chapter: ReaderChapter) {
|
|
|
+ if (chapter.state is ReaderChapter.State.Loaded || chapter.state == ReaderChapter.State.Loading) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (chapter.pageLoader is HttpPageLoader) {
|
|
|
val manga = manga ?: return
|
|
|
val dbChapter = chapter.chapter
|