Browse Source

修复漫画定位错误的问题

HapeLee 6 tháng trước cách đây
mục cha
commit
b3c4f7d09f
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  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 (toFirst) {
                 mCallback?.showLoading()
-                durChapterPos = 0
             }
+            durChapterPos = 0
             durChapterIndex++
             prevMangaChapter = curMangaChapter
             curMangaChapter = nextMangaChapter
@@ -394,8 +394,8 @@ object ReadManga : CoroutineScope by MainScope() , KoinComponent{
         if (durChapterIndex > 0) {
             if (toFirst) {
                 mCallback?.showLoading()
-                durChapterPos = 0
             }
+            durChapterPos = 0
             durChapterIndex--
             nextMangaChapter = curMangaChapter
             curMangaChapter = prevMangaChapter