Hey guys I got stuck in a strange scenario I have a bottom sheet with Tab Layout. Each contains a fragment. Consider we have Fragment A and Fragment B. In fragment B I have added Nav graph with 2 fragment C and D. But when I reach to D and press back the bottom sheet get closed. But actually i want that i can go back to C when User Presses System Back Button and if the currently visible fragment is C then Bottom Sheet will get Closed.
Note: Have Tried onBackPressedCallback in Fragment D but it is not working.