Skip to content

Commit

Permalink
For mozilla-mobile#14902 - Disabling bottom toolbar animation now wor…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugurell authored and abhijitvalluri committed Sep 11, 2020
1 parent 93bc875 commit d21caf7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,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 -> {
Expand Down

0 comments on commit d21caf7

Please sign in to comment.