浏览代码

Fix keyboard sometimes affecting bottom inset padding

arkon 4 年之前
父节点
当前提交
aa98cd0da0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt

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