'Jetpack Nav-Graph navigation to current fragment itself also having it in stack

Fragment Structure

Fragment Stack I want so that on back press I load fragment with my old data state

A->B->C->C

Fragment Stack, nav graph created even if I move from C to C again. (that is what I judge while implementing)

A->B->C

I want to go to C itself many times and then also on back press getting all loaded C fragments with the old state it has.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source