Skip to content

Commit

Permalink
fix add LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
harukitosa authored Aug 7, 2024
1 parent 2b2acf9 commit 646ca22
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ internal open class WindowView(
// NOTE: WindowManager.addViewしたViewはデフォルトでSystemBarsのInsetが考慮されるため明示的に無効化するために0を設定する
// https://developer.android.com/reference/android/view/WindowManager.LayoutParams#setFitInsetsTypes(int)
params.fitInsetsTypes = 0
params.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
}

if (appSoftInputModeIsNothing) {
Expand Down

0 comments on commit 646ca22

Please sign in to comment.