From 8e92d3c15cc4a9e7c687a19b12bc28ef01c94bc4 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/plugins/webdav/WebDavHandler.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt b/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt index 667b75681..42aee66b3 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt @@ -13,7 +13,6 @@ import com.stevesoltys.seedvault.plugins.StoragePluginManager import com.stevesoltys.seedvault.settings.SettingsManager import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.asStateFlow -import okhttp3.HttpUrl.Companion.toHttpUrl import java.io.IOException internal sealed interface WebDavConfigState { @@ -38,7 +37,7 @@ internal class WebDavHandler( companion object { fun createWebDavProperties(context: Context, config: WebDavConfig): WebDavProperties { - val host = config.url.toHttpUrl().host + val host = config.url.removePrefix("https://") return WebDavProperties( config = config, name = context.getString(R.string.storage_webdav_name, host),