gedoor 4 years ago
parent
commit
1f4cdd627d

+ 2 - 1
app/src/main/assets/updateLog.md

@@ -11,10 +11,11 @@
 * 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
 * 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
 
-**2022/01/09**
+**2022/01/10**
 
 * 继续修复txt目录识别,现在识别启用的规则,再识别禁用的规则,按目录匹配数由多到少识别,如果有章节大于5万字就尝试下一个目录规则,如果没有任何目录匹配或每章都小于5万字则自动分段
 * 修复全局搜索跳转bug
+* 从外部打开的文件如果书架上已有会对比更新时间,如果打开的文件更新会替换原文件
 
 **2022/01/06**
 

+ 6 - 4
app/src/main/java/io/legado/app/model/ReadBook.kt

@@ -93,10 +93,12 @@ object ReadBook : CoroutineScope by MainScope() {
         if (durChapterIndex != progress.durChapterIndex
             || durChapterPos != progress.durChapterPos
         ) {
-            durChapterIndex = progress.durChapterIndex
-            durChapterPos = progress.durChapterPos
-            clearTextChapter()
-            loadContent(resetPageOffset = true)
+            if (progress.durChapterIndex > chapterSize) {
+                durChapterIndex = progress.durChapterIndex
+                durChapterPos = progress.durChapterPos
+                clearTextChapter()
+                loadContent(resetPageOffset = true)
+            }
         }
     }