mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-09 19:10:42 +00:00
For #2377: Adds share to tabs and tab collections
This commit is contained in:
parent
9c2352f2c5
commit
7e7edc8b7a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user