1
0
Fork 0

Closes #2789: Custom tabs is not covering the full screen size.

master
Arturo Mejia 2019-05-25 10:58:51 -04:00 committed by Sawyer Blatz
parent bfc0fa36b1
commit ba6bb916e4
2 changed files with 12 additions and 8 deletions

View File

@ -60,4 +60,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- #1994 - Made app state persist better when rotating the screen - #1994 - Made app state persist better when rotating the screen
- #654 - Updated Refresh button to turn into Stop button while menu is open. - #654 - Updated Refresh button to turn into Stop button while menu is open.
- [AC #2725](https://github.com/mozilla-mobile/android-components/issues/2725) Updated tracking protectionPolicy to [recommend](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt#L156) - [AC #2725](https://github.com/mozilla-mobile/android-components/issues/2725) Updated tracking protectionPolicy to [recommend](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/EngineSession.kt#L156)
- #2789 Custom tabs is not covering the full screen size.
### Removed ### Removed

View File

@ -162,14 +162,17 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
} }
} }
view.engineView.asView().apply { if (customTabSessionId == null) {
(layoutParams as CoordinatorLayout.LayoutParams).apply { view.engineView.asView().apply {
setMargins( (layoutParams as CoordinatorLayout.LayoutParams).apply {
0, setMargins(
0, 0,
0, 0,
(resources.displayMetrics.density * TOOLBAR_HEIGHT).toInt() + 0,
QUICK_ACTION_SHEET_HANDLE_HEIGHT) (resources.displayMetrics.density * TOOLBAR_HEIGHT).toInt() +
QUICK_ACTION_SHEET_HANDLE_HEIGHT
)
}
} }
} }