ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 220 forks source link

Clear Root framgents #181

Closed javacl closed 5 years ago

javacl commented 5 years ago

hi. when i create 5 root fragments then i need to clear them.how i can clear root fragments and remove them from view ?

mateherber commented 5 years ago

Hey! There is no built in support to drop all fragments in FragNav however you can do it manually by dropping the reference to fragnavcontroller also clearing the FragmentManager it uses manually (you shouldn't have any other fragment in it anyway as FragNav relies on being the only user of the FragmentManager it is attached to).