Closed gauravaggarwal93 closed 6 years ago
Excellent question, and may end up being an unnecessary redundancy. I'll look into it ASAP (hopefully later tonight).
After some further review, it seems like this is a better, more efficient way to handle this. Thanks for the idea. I've created a PR that I'll be working on to implement this. Any help or contributions would be appreciated #126
One thing to consider is that by doing things this way, it's possible to modify the stack (add/remove) and then immediately try to get the stack, and the previous modification may not have happened yet. It seems like an extremely rare condition, but it something to be considered.
Hello, Currently, fragment instances are getting stored both in fragment manager as well as in custom fragment stack created for each tab. Why can't we just store tags for fragments in the custom stack instead of instances?