瀏覽代碼

修复漫画定位错误的问题

HapeLee 6 月之前
父節點
當前提交
b3c4f7d09f
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      app/src/main/java/io/legado/app/model/ReadManga.kt

+ 2 - 2
app/src/main/java/io/legado/app/model/ReadManga.kt

@@ -367,8 +367,8 @@ object ReadManga : CoroutineScope by MainScope() , KoinComponent{
         if (durChapterIndex < simulatedChapterSize - 1) {
         if (durChapterIndex < simulatedChapterSize - 1) {
             if (toFirst) {
             if (toFirst) {
                 mCallback?.showLoading()
                 mCallback?.showLoading()
-                durChapterPos = 0
             }
             }
+            durChapterPos = 0
             durChapterIndex++
             durChapterIndex++
             prevMangaChapter = curMangaChapter
             prevMangaChapter = curMangaChapter
             curMangaChapter = nextMangaChapter
             curMangaChapter = nextMangaChapter
@@ -394,8 +394,8 @@ object ReadManga : CoroutineScope by MainScope() , KoinComponent{
         if (durChapterIndex > 0) {
         if (durChapterIndex > 0) {
             if (toFirst) {
             if (toFirst) {
                 mCallback?.showLoading()
                 mCallback?.showLoading()
-                durChapterPos = 0
             }
             }
+            durChapterPos = 0
             durChapterIndex--
             durChapterIndex--
             nextMangaChapter = curMangaChapter
             nextMangaChapter = curMangaChapter
             curMangaChapter = prevMangaChapter
             curMangaChapter = prevMangaChapter