diff options
| author | David Göransson <david.goransson@mullvad.net> | 2025-03-12 20:54:34 +0100 |
|---|---|---|
| committer | David Göransson <david.goransson@mullvad.net> | 2025-03-14 09:32:58 +0100 |
| commit | b7dfb12f3a1512b25bd554c207b62787e8ea4ebe (patch) | |
| tree | 5e6d9c582b7457eb85475aeaad5cfaf2cbfd9823 /android/lib/common | |
| parent | b87f048901826b73707716e5b00f8412322d2e2e (diff) | |
| download | mullvadvpn-b7dfb12f3a1512b25bd554c207b62787e8ea4ebe.tar.xz mullvadvpn-b7dfb12f3a1512b25bd554c207b62787e8ea4ebe.zip | |
Fix lint warning
Diffstat (limited to 'android/lib/common')
| -rw-r--r-- | android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ContextExtensions.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ContextExtensions.kt b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ContextExtensions.kt index 882279c999..bf275c4f53 100644 --- a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ContextExtensions.kt +++ b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ContextExtensions.kt @@ -3,6 +3,7 @@ package net.mullvad.mullvadvpn.lib.common.util import android.content.Context import android.content.Intent import android.net.Uri +import androidx.core.net.toUri import net.mullvad.mullvadvpn.lib.model.WebsiteAuthToken fun createAccountUri(accountUri: String, websiteAuthToken: WebsiteAuthToken?): Uri { @@ -13,7 +14,7 @@ fun createAccountUri(accountUri: String, websiteAuthToken: WebsiteAuthToken?): U append(websiteAuthToken.value) } } - return Uri.parse(urlString) + return urlString.toUri() } fun Context.openVpnSettings() { |
