Przeglądaj źródła

fix webdav init block main thread

821938089 4 lat temu
rodzic
commit
fbecc2333e

+ 3 - 1
app/src/main/java/io/legado/app/model/ReadBook.kt

@@ -107,7 +107,9 @@ object ReadBook : CoroutineScope by MainScope() {
 
 
     fun uploadProgress() {
     fun uploadProgress() {
         book?.let {
         book?.let {
-            AppWebDav.uploadBookProgress(it)
+            Coroutine.async {
+                AppWebDav.uploadBookProgress(it)
+            }
         }
         }
     }
     }