|
|
|
@ -6,16 +6,16 @@ package org.mozilla.fenix.customtabs
|
|
|
|
|
|
|
|
|
|
import android.app.Activity
|
|
|
|
|
import android.view.View
|
|
|
|
|
import android.view.ViewGroup.MarginLayoutParams
|
|
|
|
|
import androidx.appcompat.content.res.AppCompatResources
|
|
|
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
|
import com.airbnb.lottie.LottieCompositionFactory
|
|
|
|
|
import com.airbnb.lottie.LottieDrawable
|
|
|
|
|
import mozilla.components.browser.session.SessionManager
|
|
|
|
|
import mozilla.components.browser.toolbar.BrowserToolbar
|
|
|
|
|
import mozilla.components.browser.toolbar.display.DisplayToolbar
|
|
|
|
|
import mozilla.components.feature.customtabs.CustomTabsToolbarFeature
|
|
|
|
|
import mozilla.components.support.base.feature.UserInteractionHandler
|
|
|
|
|
import mozilla.components.support.base.feature.LifecycleAwareFeature
|
|
|
|
|
import mozilla.components.support.base.feature.UserInteractionHandler
|
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
|
import org.mozilla.fenix.components.toolbar.ToolbarMenu
|
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
@ -36,7 +36,7 @@ class CustomTabsIntegration(
|
|
|
|
|
|
|
|
|
|
// Reduce margin height of EngineView from the top for the toolbar
|
|
|
|
|
engineLayout.run {
|
|
|
|
|
(layoutParams as CoordinatorLayout.LayoutParams).apply {
|
|
|
|
|
(layoutParams as MarginLayoutParams).apply {
|
|
|
|
|
val toolbarHeight = resources.getDimension(R.dimen.browser_toolbar_height).toInt()
|
|
|
|
|
setMargins(0, toolbarHeight, 0, 0)
|
|
|
|
|
}
|
|
|
|
|