Open parassftpl opened 8 years ago
I have a button in my Activity. On click of button, I want to clear whole backstack and keep my home fragment.
How do I do that?
List<IMasterFragment> fragments = getFragmentMaster().getFragments(); for(int i = fragments.size() - 1; i > 0; i--) { fragments.get(i).finish(); }
I have a button in my Activity. On click of button, I want to clear whole backstack and keep my home fragment.
How do I do that?