diff --git a/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/window/ComposeContainer.uikit.kt b/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/window/ComposeContainer.uikit.kt index 1a1ee79f4e475..9fb2e1d28ce72 100644 --- a/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/window/ComposeContainer.uikit.kt +++ b/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/window/ComposeContainer.uikit.kt @@ -384,7 +384,7 @@ internal class ComposeContainer( lifecycleOwner.dispose() mediator?.dispose() mediator = null - layers.fastForEach { + layers.fastForEachReversed { it.close() } }