From b24f913e37fa35667a2aac6fcf1e9d8ba6c51c59 Mon Sep 17 00:00:00 2001 From: 821938089 <821938089@qq.com> Date: Mon, 11 Jul 2022 10:45:16 +0800 Subject: [PATCH] fix webdav init block main thread --- app/src/main/java/io/legado/app/model/ReadBook.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/ReadBook.kt b/app/src/main/java/io/legado/app/model/ReadBook.kt index db820a572..e08c7d0fe 100644 --- a/app/src/main/java/io/legado/app/model/ReadBook.kt +++ b/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) + } } }