Fix keyboard sometimes affecting bottom inset padding
(cherry picked from commit aa98cd0da0)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user