File tree Expand file tree Collapse file tree
android/src/main/java/com/swmansion/rnscreens Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,21 +175,18 @@ class ScreenStack(
175175 childDrawingOrderStrategy = null
176176
177177 // Determine new first & last visible screens.
178- // Scope function to limit the scope of locals.
179- run {
180- val notDismissedWrappers =
181- screenWrappers
182- .asReversed()
183- .asSequence()
184- .filter { ! dismissedWrappers.contains(it) && it.screen.activityState != = Screen .ActivityState .INACTIVE }
185-
186- newTop = notDismissedWrappers.firstOrNull()
187- visibleBottom =
188- notDismissedWrappers
189- .dropWhile { it.screen.isTransparent() }
190- .firstOrNull()
191- ?.takeUnless { it == = newTop }
192- }
178+ val notDismissedWrappers =
179+ screenWrappers
180+ .asReversed()
181+ .asSequence()
182+ .filter { ! dismissedWrappers.contains(it) && it.screen.activityState != = Screen .ActivityState .INACTIVE }
183+
184+ newTop = notDismissedWrappers.firstOrNull()
185+ visibleBottom =
186+ notDismissedWrappers
187+ .dropWhile { it.screen.isTransparent() }
188+ .firstOrNull()
189+ ?.takeUnless { it == = newTop }
193190
194191 var shouldUseOpenAnimation = true
195192 var stackAnimation: StackAnimation ? = null
You can’t perform that action at this time.
0 commit comments