We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1da9af + 6e31684 commit 5cb29dbCopy full SHA for 5cb29db
navigation-fragments/src/main/java/dev/hotwire/navigation/navigator/Navigator.kt
@@ -43,7 +43,11 @@ class Navigator(
43
*/
44
val currentDestination: HotwireDestination?
45
get() = currentDialogDestination as? HotwireDestination
46
- ?: host.childFragmentManager.primaryNavigationFragment as? HotwireDestination
+ ?: if (isReady()) {
47
+ host.childFragmentManager.primaryNavigationFragment as? HotwireDestination
48
+ } else {
49
+ null
50
+ }
51
52
/**
53
* Gets the location for the current destination.
0 commit comments