Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
diegaspar opened this issue Jan 7, 2020 · 1 comment

Comments

@diegaspar
Copy link

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?

@Kamil-H
Copy link

Kamil-H commented Jan 14, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants