fix vertical insets of AccountActivity (#2320)
This commit is contained in:
parent
c254f210c6
commit
ae656a17a8
1 changed files with 3 additions and 1 deletions
|
@ -258,8 +258,10 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
|
|||
val toolbarParams = binding.accountToolbar.layoutParams as ViewGroup.MarginLayoutParams
|
||||
toolbarParams.topMargin = top
|
||||
|
||||
val right = insets.getInsets(systemBars()).right
|
||||
val bottom = insets.getInsets(systemBars()).bottom
|
||||
binding.accountCoordinatorLayout.updatePadding(bottom = bottom)
|
||||
val left = insets.getInsets(systemBars()).left
|
||||
binding.accountCoordinatorLayout.updatePadding(right = right, bottom = bottom, left = left)
|
||||
|
||||
WindowInsetsCompat.CONSUMED
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue