Skip to content

Commit

Permalink
Merge pull request #691 from grote/690-webdav-info
Browse files Browse the repository at this point in the history
Show full URL in settings when WebDAV is used
  • Loading branch information
grote authored Oct 17, 2024
2 parents 3fd6154 + f52b100 commit d96bc52
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 d96bc52

Please sign in to comment.