[fenix] For https://github.com/mozilla-mobile/fenix/issues/17899 - Expand toolbar...
commit2073416553ea13eb94251d8960a68277f7754968
authorMugurell <Mugurell@users.noreply.github.com>
Mon, 8 Feb 2021 17:34:12 +0000 (8 19:34 +0200)
committerMugurell <Mugurell@users.noreply.github.com>
Fri, 19 Feb 2021 15:46:49 +0000 (19 17:46 +0200)
tree78c80987ef16fe9ef5c40cf4bc631dc831c14a70
parentd10ab58dd01c774937795e7cdcd1a5bb4255704e
[fenix] For https://github.com/mozilla-mobile/fenix/issues/17899 - Expand toolbar when returning from fullscreen video

This was the previous behavior for both the top and bottom toolbars.
Regressed when changing to use a new custom behavior for the top toolbar.

When entering fullscreen we will now collapse and hide the toolbar, allow the
browser to expand to the entire screen estate and then, when exiting fullscreen
expand the toolbar.
Collapsing and then expanding the toolbar will trigger the
EngineViewBrowserToolbarBehavior to place the browser below the toolbar.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarView.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/components/toolbar/BrowserToolbarViewTest.kt