kunfei 4 anni fa
parent
commit
9c3864a66e

+ 1 - 0
app/src/main/java/io/legado/app/help/storage/AppWebDav.kt

@@ -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