From 6fc845e3030adfd38ecfe1cbaf3bac805e49cdc2 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Wed, 24 Mar 2021 20:14:38 -0400 Subject: [PATCH] Fix bottom sheets sometimes hovering over nav bar Happens when the keyboard shows and on some sheets in android 12 (yes I have a device on dev preview) --- .../main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt index b04b8f5a67..90320ff093 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt @@ -254,6 +254,8 @@ fun BottomSheetDialog.setEdgeToEdge( window?.decorView?.systemUiVisibility = View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR window?.findViewById(com.google.android.material.R.id.container)?.fitsSystemWindows = false + window?.findViewById(com.google.android.material.R.id.coordinator)?.fitsSystemWindows = + false contentView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION