From 86cb9799cfef87fa737219e6c0a3ac1256c40334 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Tue, 27 Sep 2022 12:36:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/api/controller/BookController.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/io/legado/app/api/controller/BookController.kt b/app/src/main/java/io/legado/app/api/controller/BookController.kt index 71636242e..21493181f 100644 --- a/app/src/main/java/io/legado/app/api/controller/BookController.kt +++ b/app/src/main/java/io/legado/app/api/controller/BookController.kt @@ -13,7 +13,6 @@ import io.legado.app.help.CacheManager import io.legado.app.help.ContentProcessor import io.legado.app.help.glide.ImageLoader import io.legado.app.model.BookCover -import io.legado.app.model.ReadBook import io.legado.app.model.localBook.LocalBook import io.legado.app.model.webBook.WebBook import io.legado.app.ui.book.read.page.provider.ImageProvider @@ -201,10 +200,6 @@ object BookController { GSON.fromJsonObject(postData).getOrNull()?.let { book -> book.save() AppWebDav.uploadBookProgress(book) - if (ReadBook.book?.bookUrl == book.bookUrl) { - ReadBook.book = book - ReadBook.durChapterIndex = book.durChapterIndex - } return returnData.setData("") } return returnData.setErrorMsg("格式不对") @@ -225,10 +220,6 @@ object BookController { book.durChapterTime = bookProgress.durChapterTime appDb.bookDao.update(book) AppWebDav.uploadBookProgress(bookProgress) - if (ReadBook.book?.bookUrl == book.bookUrl) { - ReadBook.book = book - ReadBook.durChapterIndex = book.durChapterIndex - } return returnData.setData("") } }