From a95ff37eaa30106d08144023e1d6f56e0cd3e119 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 25 Apr 2019 16:53:50 -0700 Subject: Clean urls before sharing --- .../kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt index accf9d98..f3226e2f 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt @@ -312,8 +312,8 @@ open class WebOverlayActivityBase(private val forceDesktopAgent: Boolean) : Base override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { - R.id.action_copy_link -> copyToClipboard(web.currentUrl) - R.id.action_share -> shareText(web.currentUrl) + R.id.action_copy_link -> copyToClipboard(web.currentUrl.formattedFbUrl) + R.id.action_share -> shareText(web.currentUrl.formattedFbUrl) else -> if (!OverlayContext.onOptionsItemSelected(web, item.itemId)) return super.onOptionsItemSelected(item) } -- cgit v1.2.3