Skip to content

Commit d5cb477

Browse files
committed
add edge-to-edge detection to avoid calling setDecorFitsSystemWindows
1 parent 0757fcb commit d5cb477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ object ScreenWindowTraits {
231231
screen: Screen,
232232
activity: Activity?,
233233
) {
234-
if (activity == null) {
234+
if (activity == null || EdgeToEdgePackageDetector.ENABLED) {
235235
return
236236
}
237237

0 commit comments

Comments
 (0)