For #15116: Do not set bottom toolbar behavior on PWA tabs.
This commit is contained in:
parent
c5a2e2e5a0
commit
83478b9db4
|
@ -237,7 +237,7 @@ class BrowserToolbarView(
|
||||||
fun setScrollFlags(shouldDisableScroll: Boolean = false) {
|
fun setScrollFlags(shouldDisableScroll: Boolean = false) {
|
||||||
when (settings.toolbarPosition) {
|
when (settings.toolbarPosition) {
|
||||||
ToolbarPosition.BOTTOM -> {
|
ToolbarPosition.BOTTOM -> {
|
||||||
if (settings.isDynamicToolbarEnabled) {
|
if (settings.isDynamicToolbarEnabled && !isPwaTab) {
|
||||||
(view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply {
|
(view.layoutParams as? CoordinatorLayout.LayoutParams)?.apply {
|
||||||
behavior = BrowserToolbarBottomBehavior(view.context, null)
|
behavior = BrowserToolbarBottomBehavior(view.context, null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user