0

I'm using navgraph with some fragments Fragment A --> Fragment B --> Fragment C as the navigation. When I navigate from Fragment A to Fragment B and press back, I see onCreateView and then onViewCreated is called again in the Fragment A which results to render the fragment again and make the backend apis. I have a recyclerview in Fragment A which makes the fragment A to render recyclerview again. Can someone tell me in navgraph how can I stop re-rendering Fragment A when back is pressed from Fragment B.

Thanks

maheshgupta024
  • 7,657
  • 3
  • 20
  • 18

0 Answers0