mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
parent
8928822e99
commit
66d76d3123
@ -279,18 +279,20 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope,
|
||||
|
||||
val actionEmitter = ActionBusFactory.get(this).getManagedEmitter(SearchAction::class.java)
|
||||
|
||||
externalSessionId?.let {
|
||||
customTabsIntegration.set(
|
||||
feature = CustomTabsIntegration(
|
||||
requireContext(),
|
||||
requireComponents.core.sessionManager,
|
||||
toolbar,
|
||||
it,
|
||||
activity,
|
||||
onItemTapped = { actionEmitter.onNext(SearchAction.ToolbarMenuItemTapped(it)) }
|
||||
),
|
||||
owner = this,
|
||||
view = view)
|
||||
if (getSessionById()?.isCustomTabSession() == true) {
|
||||
externalSessionId?.let {
|
||||
customTabsIntegration.set(
|
||||
feature = CustomTabsIntegration(
|
||||
requireContext(),
|
||||
requireComponents.core.sessionManager,
|
||||
toolbar,
|
||||
it,
|
||||
activity,
|
||||
onItemTapped = { actionEmitter.onNext(SearchAction.ToolbarMenuItemTapped(it)) }
|
||||
),
|
||||
owner = this,
|
||||
view = view)
|
||||
}
|
||||
}
|
||||
|
||||
toolbarComponent.getView().setOnSiteSecurityClickedListener {
|
||||
|
Loading…
Reference in New Issue
Block a user