2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-02 03:40:16 +00:00

Fixes #836: Creates new private tab in new session from menu bar

This commit is contained in:
Sawyer Blatz 2019-03-04 15:50:58 -08:00 committed by Emily Kager
parent 3f6c68cced
commit c4b3927f2e

View File

@ -271,7 +271,7 @@ class BrowserFragment : Fragment(), BackHandler {
.selectedSession?.url?.apply { requireContext().share(this) }
ToolbarMenu.Item.NewPrivateTab -> {
val directions = BrowserFragmentDirections
.actionBrowserFragmentToSearchFragment(requireComponents.core.sessionManager.selectedSession?.id)
.actionBrowserFragmentToSearchFragment(null)
Navigation.findNavController(view!!).navigate(directions)
(activity as HomeActivity).browsingModeManager.mode = BrowsingModeManager.Mode.Private
}