I've a 4 tab bottom navigation used with the navigation component for setup. The problem is, after navigating through the tab of the bottom nav for a while, pressing the back button takes me through every fragment/tab I've visited before getting back to the first tab and exit the app.
What can I do to modify this behavior, I think normally the first back button should take the user back to the first tab then the second closes the app. How can I achieve this behavior ?