What I am exactly looking for is that wether my fragment is already in the back stack or not.
For example, I navigate to Fragment A to Fragment B. Later, I navigate to Fragment B to Fragment C. Now, I want to check in the Fragment C that is there Fragment A available in the back stack. If yes, I want to pop out all the fragments up to Fragment A else I want to add new Fragment A.
Please make sure I want to check availability of Fragment A in Fragment C.
Is there any luck?
Thanks in advance.