feat: 修复web阅读时app未退出阅读界面导致的进度bug;移除EventBus.OPEN_CHAPTER
This commit is contained in:
@@ -16,6 +16,7 @@ import io.legado.app.help.glide.ImageLoader
|
||||
import io.legado.app.model.BookCover
|
||||
import io.legado.app.model.localBook.LocalBook
|
||||
import io.legado.app.model.webBook.WebBook
|
||||
import io.legado.app.model.ReadBook
|
||||
import io.legado.app.ui.book.read.page.provider.ImageProvider
|
||||
import io.legado.app.utils.*
|
||||
import kotlinx.coroutines.delay
|
||||
@@ -221,6 +222,13 @@ object BookController {
|
||||
book.durChapterTime = bookProgress.durChapterTime
|
||||
appDb.bookDao.update(book)
|
||||
AppWebDav.uploadBookProgress(bookProgress)
|
||||
ReadBook.book?.let {
|
||||
if (it.name == bookProgress.name &&
|
||||
it.author == bookProgress.author
|
||||
) {
|
||||
ReadBook.webBookProgress = bookProgress
|
||||
}
|
||||
}
|
||||
return returnData.setData("")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user