This commit is contained in:
Horis 2024-03-20 11:27:26 +08:00
parent c432d850a9
commit daf7d33e53

View File

@ -66,7 +66,7 @@ object AppWebDav {
defaultBookWebDav = null
val account = appCtx.getPrefString(PreferKey.webDavAccount)
val password = appCtx.getPrefString(PreferKey.webDavPassword)
if (!account.isNullOrBlank() && !password.isNullOrBlank()) {
if (!account.isNullOrEmpty() && !password.isNullOrEmpty()) {
val mAuthorization = Authorization(account, password)
checkAuthorization(mAuthorization)
WebDav(rootWebDavUrl, mAuthorization).makeAsDir()