Closed dajver closed 4 years ago
Found problem, it's very important to use fragment or activity with context. But I wanted use it in different class which didn't have actual context...
👍 @dajver Thanks for taking the time to come back with your solution and closing the issue.
Hey, Im trying to use your library, but I can't understand why its crashing all the time when I try to pushFragment:
mFragNavController.pushFragment(StoryEditFragment.newInstance(story));
It's says that stack is empty, but I don't understand how to add to this stack fragments which I want to push... And it link to
fragmentStacksTags[currentStackIndex].push(fragmentTag)
. As I understoodcurrentStackIndex = 0
. Or maybe fragmentStacksTags is empty.replaceFragment has same problem it even doesn't work, no crash no anything , but switch tab works well...
When I use standart replace fragment everything works fine...