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) {
when (settings.toolbarPosition) {
ToolbarPosition.BOTTOM -> {
(view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply {
behavior = BrowserToolbarBottomBehavior(view.context, null)
if (settings.isDynamicToolbarEnabled) {
(view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply {
behavior = BrowserToolbarBottomBehavior(view.context, null)
}
} else {
expand()
}
}
ToolbarPosition.TOP -> {

Loading…
Cancel
Save