From aa98cd0da0d779431154de1f2e3cfabbf4de397b Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 28 Nov 2020 13:02:15 -0500 Subject: [PATCH] Fix keyboard sometimes affecting bottom inset padding --- .../kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt index f0677064ca..da682e408c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt +++ b/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) }