From ea7bf5eb088b15067dd4c19b5d306d5f373e922a Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 17 Jul 2022 23:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt index 79c1a6391..49dc60b74 100644 --- a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt @@ -77,8 +77,8 @@ class RemoteBookViewModel(application: Application) : BaseViewModel(application) fun loadRemoteBookList(path: String?, loadCallback: (loading: Boolean) -> Unit) { execute { dataCallback?.clear() - val path = path ?: RemoteBookWebDav.rootBookUrl - val bookList = RemoteBookWebDav.getRemoteBookList(path) + val url = path ?: RemoteBookWebDav.rootBookUrl + val bookList = RemoteBookWebDav.getRemoteBookList(url) dataCallback?.setItems(bookList) }.onError { AppLog.put("获取webDav书籍出错\n${it.localizedMessage}", it)