I have a deep, nested, fragment application. When I use the below code all works.
fragmentManager.popBackStack("root", FragmentManager.POP_BACK_STACK_INCLUSIVE);
However I want to keep the root fragment so I call
fragmentManager.popBackStack("root", 0);
But it doens't work, the Stack is the same. I'm sure that "root" is present because when I use the first code all is done in the right way.