I've just started using Navigation Component library. I've implemented a bottom navigation view and wired it up with NavController. The problem is, every time I click the navigation icon, the associated fragment gets recreated. I want it to reuse the fragment in back stack. Can anyone give me a solution.
Note: I have tried to use OnNavigationItemSelecetedListener. It doesn't seem to override the bottom nav click events.