aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-04-25 16:53:50 -0700
committerAllan Wang <me@allanwang.ca>2019-04-25 16:53:50 -0700
commita95ff37eaa30106d08144023e1d6f56e0cd3e119 (patch)
tree8f5e87f433869f820709632ae5e9ade751a9425d /app/src/main/kotlin
parentcc40f240665871342ea09e64add39a87f2875fc8 (diff)
downloadfrost-a95ff37eaa30106d08144023e1d6f56e0cd3e119.tar.gz
frost-a95ff37eaa30106d08144023e1d6f56e0cd3e119.tar.bz2
frost-a95ff37eaa30106d08144023e1d6f56e0cd3e119.zip
Clean urls before sharing
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/WebOverlayActivity.kt4
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)
}