FragNav icon indicating copy to clipboard operation
FragNav copied to clipboard

rootFragments and fragmentStackTags sizes mismatch when restoring the FragNavController from Bundle

Open youssefhassan opened this issue 6 years ago • 1 comments

Hello,

I bumped into an issue with the FragNavController especially after restoring the from savedInstanceState and having a dynamically changing number of tabs, that the rootFragments count is greater than the fragmentStacksTags so it throws IndexOutOfBoundsException with message "Can't switch to a tab that hasn't been initialized" .. is that expected behaviour?

Thanks,

youssefhassan avatar Sep 18 '19 13:09 youssefhassan

Hmm, definitely sounds like an issue. I will see if I can track it down.

ncapdevi avatar Nov 27 '19 17:11 ncapdevi