Sorry if my question is not Kotlin 😄
I am facing with navigation component issue. I am trying to navigate to a screen inside a navFragmentContainer. It work fine but after I navigateUp (or popBackStack) I got a bank screen. Any idea for my issue, thanks!!
😄 1
👀 1
😶 2
Breaker ACT
01/11/2022, 4:36 AM
I have used layout inspector to check, the startDestination still being hold but it is not visible.
The click listener of it still work
Breaker ACT
01/11/2022, 4:36 AM
image.png
u
Umar Ata
01/11/2022, 4:58 PM
If you share some of your code inside onview created and oncreateview so anyone can help
✅ 1
b
Breaker ACT
01/12/2022, 2:47 AM
@Umar Ata Thank buddy I have found the issue.
The reason is: I start to navigate the fragment when lifecycle reach onViewCreated.
The solution: I use binding.post{ //Navigate } to queuing the navigation job.