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

For #2074: Displays title only in custom tabs (#2075)

This commit is contained in:
Sawyer Blatz 2019-04-26 11:35:27 -07:00 committed by GitHub
parent 8928822e99
commit 66d76d3123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {