diff --git a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.kt b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.kt index 0203be6..1fef8dc 100644 --- a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.kt +++ b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.kt @@ -15,7 +15,8 @@ private fun getRootWindowInsetsCompatR(rootView: View): EdgeInsets? { rootView.rootWindowInsets?.getInsets( WindowInsets.Type.statusBars() or WindowInsets.Type.displayCutout() or - WindowInsets.Type.navigationBars()) + WindowInsets.Type.navigationBars() or + WindowInsets.Type.captionBar()) ?: return null return EdgeInsets( top = insets.top.toFloat(),