diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-25 16:53:50 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-04-25 16:53:50 -0700 |
commit | a95ff37eaa30106d08144023e1d6f56e0cd3e119 (patch) | |
tree | 8f5e87f433869f820709632ae5e9ade751a9425d /app/src | |
parent | cc40f240665871342ea09e64add39a87f2875fc8 (diff) | |
download | frost-a95ff37eaa30106d08144023e1d6f56e0cd3e119.tar.gz frost-a95ff37eaa30106d08144023e1d6f56e0cd3e119.tar.bz2 frost-a95ff37eaa30106d08144023e1d6f56e0cd3e119.zip |
Clean urls before sharing
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |