Skip to content

Commit 2c8e9e8

Browse files
fix: include captionBar in insets
1 parent 82198cb commit 2c8e9e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ private fun getRootWindowInsetsCompatR(rootView: View): EdgeInsets? {
1515
rootView.rootWindowInsets?.getInsets(
1616
WindowInsets.Type.statusBars() or
1717
WindowInsets.Type.displayCutout() or
18-
WindowInsets.Type.navigationBars())
18+
WindowInsets.Type.navigationBars() or
19+
WindowInsets.Type.captionBar())
1920
?: return null
2021
return EdgeInsets(
2122
top = insets.top.toFloat(),

0 commit comments

Comments
 (0)