06/30/2022, 7:11 PM
How to replace fragment outside of bottom sheet by clicking button inside of bottom sheet? So I've decided to make my app with single Activity. In one of my fragments (fragment(A)) I open bottom sheet by clicking Button open BS. Now the tricky park, inside bottom sheet there is a FragmentContainerView that has two fragments inside and I want to click Button B inside this FragmentContainerView (in fragment(B)) that would change fragment(A) to fragment(C) and close bottom sheet. I'm aware that by using code below it's possible to swap fragment and close bottom sheet (here I'm...