Skip to content

Commit

Permalink
Update restoration logic to also set the previously active container …
Browse files Browse the repository at this point in the history
…back to null, if that's what it was
  • Loading branch information
isaac-udy committed Apr 28, 2024
1 parent d02d2a3 commit 18a0db0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,7 @@ public class ComposableNavigationContainer internal constructor(
ContainerRegistrationStrategy.DisposeWithCompositionDoNotSave -> Unit
ContainerRegistrationStrategy.DisposeWithLifecycle -> Unit
}
if (activeBeforeRestore != null) {
context.containerManager.setActiveContainerByKey(activeBeforeRestore)
}
context.containerManager.setActiveContainerByKey(activeBeforeRestore)
}

override fun SaverScope.save(value: Unit): Bundle? = when(registrationStrategy) {
Expand Down

0 comments on commit 18a0db0

Please sign in to comment.