mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Offset appbar using margin instead (maybe fixes #4819)
This commit is contained in:
parent
27f55f8098
commit
15bed1ac4c
1 changed files with 4 additions and 1 deletions
|
@ -95,7 +95,10 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
||||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||||
binding.appbar.applyInsetter {
|
binding.appbar.applyInsetter {
|
||||||
type(navigationBars = true, statusBars = true) {
|
type(navigationBars = true, statusBars = true) {
|
||||||
padding(left = true, top = true, right = true)
|
padding(left = true, right = true)
|
||||||
|
}
|
||||||
|
type(statusBars = true) {
|
||||||
|
margin(top = true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
binding.bottomNav.applyInsetter {
|
binding.bottomNav.applyInsetter {
|
||||||
|
|
Loading…
Reference in a new issue