diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt index e68943e9..99223039 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt @@ -80,8 +80,14 @@ fun Context.sendAddressIntent(address: String) { } fun Context.openWebsiteIntent(url: String) { + val website = if (url.startsWith("http")) { + url + } else { + "https://$url" + } + Intent(Intent.ACTION_VIEW).apply { - data = Uri.parse(url) + data = Uri.parse(website) if (resolveActivity(packageManager) != null) { startActivity(this) } else {