diff --git a/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabsIntegration.kt b/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabsIntegration.kt index 290691175..c561cbba2 100644 --- a/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabsIntegration.kt +++ b/app/src/main/java/org/mozilla/fenix/customtabs/CustomTabsIntegration.kt @@ -5,8 +5,6 @@ package org.mozilla.fenix.customtabs import android.app.Activity -import android.view.View -import android.view.ViewGroup import androidx.appcompat.content.res.AppCompatResources import mozilla.components.browser.session.SessionManager import mozilla.components.browser.toolbar.BrowserToolbar @@ -23,7 +21,6 @@ class CustomTabsIntegration( toolbar: BrowserToolbar, sessionId: String, activity: Activity, - engineLayout: View, onItemTapped: (ToolbarMenu.Item) -> Unit = {}, shouldReverseItems: Boolean, isPrivate: Boolean @@ -33,14 +30,6 @@ class CustomTabsIntegration( // Remove toolbar shadow toolbar.elevation = 0f - // Reduce margin height of EngineView from the top for the toolbar - engineLayout.run { - (layoutParams as ViewGroup.MarginLayoutParams).apply { - val toolbarHeight = resources.getDimension(R.dimen.browser_toolbar_height).toInt() - setMargins(0, toolbarHeight, 0, 0) - } - } - val uncoloredEtpShield = AppCompatResources.getDrawable( activity, R.drawable.ic_tracking_protection_enabled diff --git a/app/src/main/java/org/mozilla/fenix/customtabs/ExternalAppBrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/customtabs/ExternalAppBrowserFragment.kt index 3a492fed4..2066e0dbd 100644 --- a/app/src/main/java/org/mozilla/fenix/customtabs/ExternalAppBrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/customtabs/ExternalAppBrowserFragment.kt @@ -66,7 +66,6 @@ class ExternalAppBrowserFragment : BaseBrowserFragment(), UserInteractionHandler toolbar = toolbar, sessionId = customTabSessionId, activity = activity, - engineLayout = view.swipeRefresh, onItemTapped = { browserInteractor.onBrowserToolbarMenuItemTapped(it) }, isPrivate = it.private, shouldReverseItems = !activity.settings().shouldUseBottomToolbar