pull/2077/head
kunfei 2 years ago
parent aceea3f59c
commit ea7bf5eb08
  1. 4
      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)

Loading…
Cancel
Save