kunfei 4 anni fa
parent
commit
b5b7d78954

+ 3 - 1
app/src/main/java/io/legado/app/help/storage/AppWebDav.kt

@@ -66,7 +66,9 @@ object AppWebDav {
             val password = appCtx.getPrefString(PreferKey.webDavPassword)
             val password = appCtx.getPrefString(PreferKey.webDavPassword)
             if (!account.isNullOrBlank() && !password.isNullOrBlank()) {
             if (!account.isNullOrBlank() && !password.isNullOrBlank()) {
                 HttpAuth.auth = HttpAuth.Auth(account, password)
                 HttpAuth.auth = HttpAuth.Auth(account, password)
-                isOk = WebDav(rootWebDavUrl).makeAsDir() && WebDav(bookProgressUrl).makeAsDir()
+                WebDav(rootWebDavUrl).makeAsDir()
+                WebDav(bookProgressUrl).makeAsDir()
+                isOk = true
             }
             }
         }
         }
     }
     }