From f52b1004fb83eff8cee3cc860eeea95de349a40d Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 18 Jun 2024 10:53:18 -0300 Subject: [PATCH] Show full URL in settings when WebDAV is used --- .../com/stevesoltys/seedvault/backend/webdav/WebDavHandler.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/backend/webdav/WebDavHandler.kt b/app/src/main/java/com/stevesoltys/seedvault/backend/webdav/WebDavHandler.kt index 02c439428..07e80888b 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/backend/webdav/WebDavHandler.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/backend/webdav/WebDavHandler.kt @@ -6,7 +6,6 @@ package com.stevesoltys.seedvault.backend.webdav import android.content.Context -import android.net.Uri import android.util.Log import androidx.annotation.WorkerThread import com.stevesoltys.seedvault.R @@ -42,7 +41,7 @@ internal class WebDavHandler( companion object { fun createWebDavProperties(context: Context, config: WebDavConfig): WebDavProperties { - val host = Uri.parse(config.url).host + val host = config.url.removePrefix("https://") return WebDavProperties( config = config, name = context.getString(R.string.storage_webdav_name, host),