diff options
author | Allan Wang <me@allanwang.ca> | 2021-01-11 22:18:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 22:18:37 -0800 |
commit | 68db99597b68c87f1e0eb2d1feb6b6c63bbff1e9 (patch) | |
tree | 3014b9447218c17d2407300936d574818be7d93d /app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt | |
parent | 56efff49fe15ec54c53fed18a2e1af903916e80a (diff) | |
parent | 278219e799e679c2ce203d1d227c6688b5288b4d (diff) | |
download | frost-68db99597b68c87f1e0eb2d1feb6b6c63bbff1e9.tar.gz frost-68db99597b68c87f1e0eb2d1feb6b6c63bbff1e9.tar.bz2 frost-68db99597b68c87f1e0eb2d1feb6b6c63bbff1e9.zip |
Merge pull request #1745 from AllanWang/remove-email
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt | 15 |
1 files changed, 1 insertions, 14 deletions
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 3ab924e2..03dbb9fb 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/WebContextMenu.kt @@ -75,20 +75,7 @@ enum class WebContextType( { c, wc, fc -> c.launchWebOverlay(wc.url!!, fc, Prefs.get()) }), 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) }), - DEBUG_LINK(R.string.debug_link, { it.hasUrl }, { c, wc, _ -> - c.materialDialog { - title(R.string.debug_link) - message(R.string.debug_link_desc) - positiveButton(R.string.kau_ok) { - c.sendFrostEmail(R.string.debug_link_subject) { - message = c.string(R.string.debug_link_content) - addItem("Unformatted url", wc.unformattedUrl!!) - addItem("Formatted url", wc.url!!) - } - } - } - }) + SHARE_LINK(R.string.share_link, { it.hasUrl }, { c, wc, _ -> c.shareText(wc.url) }) ; companion object { |