mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix keyboard sometimes affecting bottom inset padding
This commit is contained in:
parent
c8316c7254
commit
aa98cd0da0
1 changed files with 1 additions and 1 deletions
|
@ -44,6 +44,6 @@ val Controller.insets: WindowInsets?
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Controller.applyBottomInsetPadding(view: View, paddingBottom: Int = view.paddingBottom) {
|
fun Controller.applyBottomInsetPadding(view: View, paddingBottom: Int = view.paddingBottom) {
|
||||||
val bottomInset = insets?.systemWindowInsetBottom ?: 0
|
val bottomInset = insets?.stableInsetBottom ?: 0
|
||||||
view.updatePadding(bottom = paddingBottom + bottomInset)
|
view.updatePadding(bottom = paddingBottom + bottomInset)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue