I’m switched to NavigationComponent and i don’t know how close fragments manually using this component, in activities we have finish() method that close an activity, i need to do similar thing like this in NavigationComponent.
you can use below line in Fragment class:
if you are in an activity then you can use
Answered By – Ketan Patel
Answer Checked By – Katrina (Easybugfix Volunteer)