mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user