Explorar el Código

fix webdav init block main thread

821938089 hace 4 años
padre
commit
fbecc2333e
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/src/main/java/io/legado/app/model/ReadBook.kt

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

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