mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 00:51:49 +01:00
Fix keyboard sometimes affecting bottom inset padding
This commit is contained in:
parent
c8316c7254
commit
aa98cd0da0
@ -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 New Issue
Block a user