ncapdevi / FragNav

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

onCreateView called again when switchTab #217

Closed malwinder-s closed 5 years ago

malwinder-s commented 5 years ago

I am getting onCreateView() called again when:

fragNavController?.switchTab(position)

Shouldn't it just replace the fragment and call onRestart()?

I am using version 3.2.0 of this library

malwinder-s commented 5 years ago

Sorry, my mistake. I didn't read the documentation properly. Solution: https://github.com/ncapdevi/FragNav#show--hide-modes-for-fragment-replacement