Update BookController.kt

web端的index大于app端的index, app才会更新index.
导致在web上跳转到过往的章节, app上阅读记录不变动
pull/1261/head
letterk 4 years ago committed by GitHub
parent e4c0af598b
commit f8d0dd47be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/api/controller/BookController.kt

@ -177,7 +177,7 @@ object BookController {
} }
private fun saveBookReadIndex(book: Book, index: Int) { private fun saveBookReadIndex(book: Book, index: Int) {
if (index > book.durChapterIndex) { if (index != book.durChapterIndex) {
book.durChapterIndex = index book.durChapterIndex = index
book.durChapterTime = System.currentTimeMillis() book.durChapterTime = System.currentTimeMillis()
appDb.bookChapterDao.getChapter(book.bookUrl, index)?.let { appDb.bookChapterDao.getChapter(book.bookUrl, index)?.let {

Loading…
Cancel
Save