FragNav icon indicating copy to clipboard operation
FragNav copied to clipboard

popFragment() animations not working when defined in pushFragment() before.

Open diegaspar opened this issue 6 years ago • 1 comments

I'm setting the animations here fragNavController?.pushFragment( fragment, FragNavTransactionOptions.newBuilder() .customAnimations(enterAnimation, 0, 0, exitAnimation).build()

but when calling fragNavController?.popFragment()? the pop animation is not working.

Any ideas about it?

diegaspar avatar Jan 07 '20 17:01 diegaspar

I can confirm I saw the same behavior. For a workaround I can suggest you to call popFragment() with the same options as you call pushFragment(), so: fragNavController?.popFragment(fragment, FragNavTransactionOptions.newBuilder() .customAnimations(enterAnimation, 0, 0, exitAnimation).build()) should solve your problem.

Kamil-H avatar Jan 14 '20 19:01 Kamil-H