Skip to content

Commit

Permalink
fix: include captionBar in insets
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Jul 9, 2024
1 parent 82198cb commit 2c8e9e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 2c8e9e8

Please sign in to comment.