mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
do not ignore insets visibility on lower android versions
This commit is contained in:
parent
4361e76b18
commit
1aeb0c03d8
1 changed files with 7 additions and 1 deletions
|
@ -239,7 +239,13 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
||||||
binding.appBar.updatePadding(
|
binding.appBar.updatePadding(
|
||||||
top = insets.getInsetsIgnoringVisibility(systemBars()).top
|
top = insets.getInsetsIgnoringVisibility(systemBars()).top
|
||||||
)
|
)
|
||||||
binding.bottomNav?.updatePadding(bottom = insets.getInsetsIgnoringVisibility(systemBars()).bottom)
|
binding.bottomNav?.updatePadding(
|
||||||
|
bottom = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
|
insets.getInsetsIgnoringVisibility(systemBars()).bottom
|
||||||
|
} else {
|
||||||
|
insets.getInsets(systemBars()).bottom
|
||||||
|
}
|
||||||
|
)
|
||||||
binding.sideNav?.updatePadding(
|
binding.sideNav?.updatePadding(
|
||||||
left = 0,
|
left = 0,
|
||||||
right = 0,
|
right = 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue