mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-04 14:02:45 +01:00
android: Fix top app bar tint being cut off in the about fragment
Adjust margin on the toolbar, not the app bar
This commit is contained in:
parent
767c4b5a99
commit
c600bc8652
1 changed files with 4 additions and 4 deletions
|
@ -114,10 +114,10 @@ class AboutFragment : Fragment() {
|
||||||
val leftInsets = barInsets.left + cutoutInsets.left
|
val leftInsets = barInsets.left + cutoutInsets.left
|
||||||
val rightInsets = barInsets.right + cutoutInsets.right
|
val rightInsets = barInsets.right + cutoutInsets.right
|
||||||
|
|
||||||
val mlpAppBar = binding.appbarAbout.layoutParams as MarginLayoutParams
|
val mlpToolbar = binding.toolbarAbout.layoutParams as MarginLayoutParams
|
||||||
mlpAppBar.leftMargin = leftInsets
|
mlpToolbar.leftMargin = leftInsets
|
||||||
mlpAppBar.rightMargin = rightInsets
|
mlpToolbar.rightMargin = rightInsets
|
||||||
binding.appbarAbout.layoutParams = mlpAppBar
|
binding.toolbarAbout.layoutParams = mlpToolbar
|
||||||
|
|
||||||
val mlpScrollAbout = binding.scrollAbout.layoutParams as MarginLayoutParams
|
val mlpScrollAbout = binding.scrollAbout.layoutParams as MarginLayoutParams
|
||||||
mlpScrollAbout.leftMargin = leftInsets
|
mlpScrollAbout.leftMargin = leftInsets
|
||||||
|
|
Loading…
Reference in a new issue