Skip to content

Commit

Permalink
Attempt to fix tests failing on slow emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-udy committed Jan 23, 2023
1 parent 314e859 commit 505bf2c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ public class ComposableNavigationContainer internal constructor(
else -> activeContext
} ?: parentContext

val isRestoredFromExitingParent = when {
parentContext is FragmentContext<*> && parentContext.contextReference.isDetached -> return
parentContext.contextReference is NavigationHost -> parentContext.parentContainer()?.backstackState?.exiting != null
runCatching { parentContext.parentContext }.onFailure { return }
val isRestoredFromExitingParent = when (parentContext.contextReference) {
is NavigationHost -> parentContext.parentContainer()?.backstackState?.exiting != null
else -> false
}

Expand Down

0 comments on commit 505bf2c

Please sign in to comment.