From 999e87a8c879d8112e62baf45cbe4e876d35b9cc Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 30 Dec 2019 11:52:40 -0800 Subject: Open formatted url from context, addresses #1598 --- app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt index becc9f02..61e2c11f 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt @@ -70,7 +70,7 @@ enum class WebContextType( OPEN_LINK( R.string.open_link, { it.hasUrl }, - { c, wc -> c.launchWebOverlay(wc.unformattedUrl!!) }), + { c, wc -> c.launchWebOverlay(wc.url!!) }), COPY_LINK(R.string.copy_link, { it.hasUrl }, { c, wc -> c.copyToClipboard(wc.url) }), COPY_TEXT(R.string.copy_text, { it.hasText }, { c, wc -> c.copyToClipboard(wc.text) }), SHARE_LINK(R.string.share_link, { it.hasUrl }, { c, wc -> c.shareText(wc.url) }), -- cgit v1.2.3