Fix keyboard sometimes affecting bottom inset padding
(cherry picked from commit aa98cd0da0d779431154de1f2e3cfabbf4de397b)
This commit is contained in:
parent
02946af081
commit
65cf11ec10
1 changed files with 1 additions and 1 deletions
|
|
@ -45,6 +45,6 @@ val Controller.insets: WindowInsets?
|
|||
}
|
||||
|
||||
fun Controller.applyBottomInsetPadding(view: View, paddingBottom: Int = view.paddingBottom) {
|
||||
val bottomInset = insets?.systemWindowInsetBottom ?: 0
|
||||
val bottomInset = insets?.stableInsetBottom ?: 0
|
||||
view.updatePadding(bottom = paddingBottom + bottomInset)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue