Updated on 2026-08-14
This commit is contained in:
parent
efe851f28f
commit
0432f73924
1 changed files with 5 additions and 1 deletions
|
|
@ -245,10 +245,14 @@ class MainActivity : AppCompatActivity(), SnackbarHandler, ActivityResultCallbac
|
|||
appRouterConfig.snackbarHandler = this
|
||||
|
||||
routingComponent.stack.observe(lifecycle.asEssentyLifecycle()) { childStack ->
|
||||
appRouterConfig.stack = childStack.backStack
|
||||
val stack = childStack.backStack
|
||||
.plus(childStack.active)
|
||||
.map { it.configuration }
|
||||
|
||||
if (stack == appRouterConfig.stack) return@observe
|
||||
|
||||
appRouterConfig.stack = stack
|
||||
|
||||
when (val child = childStack.active.instance) {
|
||||
is RoutingComponent.Child.Initial -> Unit
|
||||
is RoutingComponent.Child.LegacyFragment -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue