Fix keyboard sometimes affecting bottom inset padding

(cherry picked from commit aa98cd0da0d779431154de1f2e3cfabbf4de397b)
This commit is contained in:
arkon 2020-11-28 13:02:15 -05:00 committed by Jobobby04
parent 02946af081
commit 65cf11ec10

View File

@ -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)
}