|
|
@ -199,6 +199,7 @@ object AppWebDav { |
|
|
|
|
|
|
|
|
|
|
|
suspend fun downloadAllBookProgress() { |
|
|
|
suspend fun downloadAllBookProgress() { |
|
|
|
authorization ?: return |
|
|
|
authorization ?: return |
|
|
|
|
|
|
|
if (!NetworkUtils.isAvailable()) return |
|
|
|
appDb.bookDao.all.forEach { book -> |
|
|
|
appDb.bookDao.all.forEach { book -> |
|
|
|
getBookProgress(book)?.let { bookProgress -> |
|
|
|
getBookProgress(book)?.let { bookProgress -> |
|
|
|
if (bookProgress.durChapterIndex > book.durChapterIndex |
|
|
|
if (bookProgress.durChapterIndex > book.durChapterIndex |
|
|
|