For #10504 - Adds padding fto account for navigation bar in landscape
This commit is contained in:
parent
dd2a26fc7c
commit
0b9484a172
|
@ -35,15 +35,13 @@ class TabTrayDialogFragment : AppCompatDialogFragment(), TabTrayInteractor {
|
|||
|
||||
tabLayout.setOnClickListener { dismissAllowingStateLoss() }
|
||||
|
||||
// view.tabLayout.setOnApplyWindowInsetsListener { v, insets ->
|
||||
// v.updatePadding(
|
||||
// left = insets.systemWindowInsetLeft,
|
||||
// right = insets.systemWindowInsetRight,
|
||||
// top = insets.systemWindowInsetTop,
|
||||
// bottom = insets.systemWindowInsetBottom
|
||||
// )
|
||||
// insets
|
||||
// }
|
||||
view.tabLayout.setOnApplyWindowInsetsListener { v, insets ->
|
||||
v.updatePadding(
|
||||
left = insets.systemWindowInsetLeft,
|
||||
right = insets.systemWindowInsetRight
|
||||
)
|
||||
insets
|
||||
}
|
||||
}
|
||||
|
||||
override fun onTabSelected(tab: Tab) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user