Why am I getting a "Nested fragments should always use the child FragmentManager" while using FragmentContainerView and AndroidViewBinding

Issue Fatal Exception: java.lang.IllegalStateException The Fragment SwlmFragment{6eaed00} (85ccadae-8789-4527-8c0f-9dfb23db0388 id=0x7f0a065e) that owns View androidx.fragment.app.FragmentContainerView{43d1939 V.E…… …….. 0,0-1080,1978 #7f0a0926 app:id/locked} has already been destroyed. Nested fragments should always use the child FragmentManager. ^ This is the crash I’m getting. This is the

Continue reading

How to get NavHostFragment

Issue I’m integrating Android’s Navigation Architecture Components into my app. I ran into some problems with passing data to the start of a fragment from an activity, so I was following this answer: Navigation Architecture Component- Passing argument data to

Continue reading