feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 656fe45efb
commit 4f200ec3bb
  1. 2
      app/src/main/java/io/legado/app/help/storage/SyncBookProgress.kt

@ -30,6 +30,7 @@ object SyncBookProgress {
fun downloadBookProgress() {
Coroutine.async {
if (WebDavHelp.initWebDav()) {
WebDav(webDavUrl).downloadTo(file.absolutePath, true)
if (file.exists()) {
val json = file.readText()
@ -44,5 +45,6 @@ object SyncBookProgress {
}
}
}
}
}
Loading…
Cancel
Save