diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt index a15b3ed89d..01c914e282 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt @@ -316,7 +316,10 @@ class HomeFragment : Fragment(), CoroutineScope { Navigation.findNavController(view!!).navigate(directions) } is TabAction.ShareTabs -> { - ItsNotBrokenSnack(context!!).showSnackbar(issueNumber = "1843") + val shareText = requireComponents.core.sessionManager.sessions.joinToString("\n") { + it.url + } + requireContext().share(shareText) } } } @@ -357,7 +360,10 @@ class HomeFragment : Fragment(), CoroutineScope { ItsNotBrokenSnack(context!!).showSnackbar(issueNumber = "2205") } is CollectionAction.ShareTabs -> { - ItsNotBrokenSnack(context!!).showSnackbar(issueNumber = "1585") + val shareText = action.collection.tabs.joinToString("\n") { + it.url + } + requireContext().share(shareText) } is CollectionAction.RemoveTab -> { launch(Dispatchers.IO) {