Bug 1914035 - Avoid dynamic behavior for the engine view while in fullscreen r=android-reviewers,skhan

If the toolbar is dynamic we use a CoordinatorLayout behavior to synchronize the
toolbar and the engine view.
In fullscreen the toolbars are hidden so there is no need to continue observing
layout updates and try to synchronize the two views.
The proper behavior is already set again when exiting fullscreen.

Differential Revision: https://phabricator.services.mozilla.com/D224289
This commit is contained in:
Mugurell
2024-10-02 14:49:03 +00:00
parent 9028981ddf
commit a194cb7aea

View File

@@ -2367,6 +2367,7 @@ abstract class BaseBrowserFragment :
isVisible = false
}
val browserEngine = binding.swipeRefresh.layoutParams as CoordinatorLayout.LayoutParams
browserEngine.behavior = null
browserEngine.bottomMargin = 0
browserEngine.topMargin = 0
binding.swipeRefresh.translationY = 0f