Skip to content

Commit

Permalink
Show full URL in settings when WebDAV is used
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Oct 15, 2024
1 parent f5c2f0b commit f52b100
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f52b100

Please sign in to comment.