File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,12 @@ public fun Window.setStatusBarVisibility(isHidden: Boolean) {
4141
4242@Suppress(" DEPRECATION" )
4343private 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" )
5549private 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}
You can’t perform that action at this time.
0 commit comments