Browse Source

Fix keyboard sometimes affecting bottom inset padding

arkon 4 years ago
parent
commit
aa98cd0da0

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt

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