For #14902 - Disabling bottom toolbar animation now works (#14927)

pull/101/head
Mugurell 4 years ago committed by GitHub
parent f9b2d65993
commit b54949e58f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -227,8 +227,12 @@ class BrowserToolbarView(
fun setScrollFlags(shouldDisableScroll: Boolean = false) { fun setScrollFlags(shouldDisableScroll: Boolean = false) {
when (settings.toolbarPosition) { when (settings.toolbarPosition) {
ToolbarPosition.BOTTOM -> { ToolbarPosition.BOTTOM -> {
(view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply { if (settings.isDynamicToolbarEnabled) {
behavior = BrowserToolbarBottomBehavior(view.context, null) (view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply {
behavior = BrowserToolbarBottomBehavior(view.context, null)
}
} else {
expand()
} }
} }
ToolbarPosition.TOP -> { ToolbarPosition.TOP -> {

Loading…
Cancel
Save