Closes #2789: Custom tabs is not covering the full screen size.
parent
bfc0fa36b1
commit
ba6bb916e4
|
@ -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
|
||||
- #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)
|
||||
- #2789 Custom tabs is not covering the full screen size.
|
||||
### Removed
|
||||
|
|
|
@ -162,14 +162,17 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
|
|||
}
|
||||
}
|
||||
|
||||
view.engineView.asView().apply {
|
||||
(layoutParams as CoordinatorLayout.LayoutParams).apply {
|
||||
setMargins(
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
(resources.displayMetrics.density * TOOLBAR_HEIGHT).toInt() +
|
||||
QUICK_ACTION_SHEET_HANDLE_HEIGHT)
|
||||
if (customTabSessionId == null) {
|
||||
view.engineView.asView().apply {
|
||||
(layoutParams as CoordinatorLayout.LayoutParams).apply {
|
||||
setMargins(
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
(resources.displayMetrics.density * TOOLBAR_HEIGHT).toInt() +
|
||||
QUICK_ACTION_SHEET_HANDLE_HEIGHT
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue