|
|
@ -16,6 +16,7 @@ import io.legado.app.help.glide.ImageLoader |
|
|
|
import io.legado.app.model.BookCover |
|
|
|
import io.legado.app.model.BookCover |
|
|
|
import io.legado.app.model.localBook.LocalBook |
|
|
|
import io.legado.app.model.localBook.LocalBook |
|
|
|
import io.legado.app.model.webBook.WebBook |
|
|
|
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.ui.book.read.page.provider.ImageProvider |
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.* |
|
|
|
import kotlinx.coroutines.delay |
|
|
|
import kotlinx.coroutines.delay |
|
|
@ -221,6 +222,13 @@ object BookController { |
|
|
|
book.durChapterTime = bookProgress.durChapterTime |
|
|
|
book.durChapterTime = bookProgress.durChapterTime |
|
|
|
appDb.bookDao.update(book) |
|
|
|
appDb.bookDao.update(book) |
|
|
|
AppWebDav.uploadBookProgress(bookProgress) |
|
|
|
AppWebDav.uploadBookProgress(bookProgress) |
|
|
|
|
|
|
|
ReadBook.book?.let { |
|
|
|
|
|
|
|
if (it.name == bookProgress.name && |
|
|
|
|
|
|
|
it.author == bookProgress.author |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
ReadBook.webBookProgress = bookProgress |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return returnData.setData("") |
|
|
|
return returnData.setData("") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|