mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/14902 - Disabling bottom toolbar animation now works (https://github.com/mozilla-mobile/fenix/pull/14927)
This commit is contained in:
parent
5d53b9e168
commit
bea5d9ddce
@ -227,9 +227,13 @@ class BrowserToolbarView(
|
||||
fun setScrollFlags(shouldDisableScroll: Boolean = false) {
|
||||
when (settings.toolbarPosition) {
|
||||
ToolbarPosition.BOTTOM -> {
|
||||
if (settings.isDynamicToolbarEnabled) {
|
||||
(view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply {
|
||||
behavior = BrowserToolbarBottomBehavior(view.context, null)
|
||||
}
|
||||
} else {
|
||||
expand()
|
||||
}
|
||||
}
|
||||
ToolbarPosition.TOP -> {
|
||||
view.updateLayoutParams<AppBarLayout.LayoutParams> {
|
||||
|
Loading…
Reference in New Issue
Block a user