Fix keyboard sometimes affecting bottom inset padding

This commit is contained in:
arkon 2020-11-28 13:02:15 -05:00
parent c8316c7254
commit aa98cd0da0

View File

@ -44,6 +44,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)
}