Skip to content

Commit 70a68ca

Browse files
Do not set fitSystemWindows
1 parent 2498267 commit 70a68ca

File tree

1 file changed

+0
-11
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view

1 file changed

+0
-11
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/WindowUtil.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,12 @@ public fun Window.setStatusBarVisibility(isHidden: Boolean) {
4141

4242
@Suppress("DEPRECATION")
4343
private fun Window.statusBarHide() {
44-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
45-
// Ensure the content extends into the cutout area
46-
attributes.layoutInDisplayCutoutMode =
47-
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
48-
setDecorFitsSystemWindows(false)
49-
}
5044
addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
5145
clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN)
5246
}
5347

5448
@Suppress("DEPRECATION")
5549
private fun Window.statusBarShow() {
56-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
57-
attributes.layoutInDisplayCutoutMode =
58-
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
59-
setDecorFitsSystemWindows(true)
60-
}
6150
addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN)
6251
clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
6352
}

0 commit comments

Comments
 (0)