terrakok / Cicerone

🚦 Cicerone is a lightweight library that makes the navigation in an Android app easy.
Other
2.58k stars 218 forks source link

Fragment transaction animation issue with nested navigation implemented #72

Closed Lex1717 closed 6 years ago

Lex1717 commented 6 years ago

Thanks for the great lib! The usecase: I've got an app with nested navigation like in your example app. Got several instances of the TabContainerFragment wich could be selected by tapping on bottom navigation bar's icons. I overrided setupFragmentTransactionAnimation method in TabContainerFragment's navigator and described transition from fragment A to fragment B with animation xml files. Steps: Let's say in tab 1 I move forward from fragment A to fragment B. Animation works perfectly. After that I select tab 2 that contains fragment C and return back to tab 1, that has fragment B. At this point fragment B appears with the last applied animation again. But I don't want to see this animation when I navigating between the tabs. How can I disable it?

Thanks in advance!