1
0
Fork 0

For #6827, #6811 - Cast layoutParams to MarginLayoutParams

master
Tiger Oakes 2019-11-28 15:39:33 -08:00 committed by Emily Kager
parent 22879b533e
commit a16aedb680
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}