-
Notifications
You must be signed in to change notification settings - Fork 223
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
Fragment transition when restoring from saved state #88
Comments
@liquidninja24 makes sense to me. I'll go ahead and add that. |
@ncapdevi Thanks! Any idea when that change would get committed and tagged? |
Everything is seemingly stable so I can push an update (2.2.2) this evening. |
Sweet, thanks man! |
Had a look at the code. I think you need to pass an empty FragNavTransactionsOptions object here: a478a4e#diff-d9ef9db018ea0b9cdc4dce6b5cbfa071L901 otherwise it'll use the default transaction options as defined here:
|
Ah, you appear to be correct, good catch. Apologies for that. |
Also, It may be better / helpful to create a static constant to signify no transaction options that can reused, rather than creating a new object every time. In
|
I'm sorry to keep bugging you about this, but I'm trying to add a feature to my app and this is an annoying bug. I know you're busy, but I would really appreciate it if you could push out a tag in the next day or two. |
Ah, should be out now in |
Thanks a lot man! |
👍 Cheers. Thanks, as usual, for your insight and help. |
Hey Nick,
When restoring from saved instance state the default transition animations are being applied to the current fragment: https://github.com/ncapdevi/FragNav/blob/master/frag-nav/src/main/java/com/ncapdevi/fragnav/FragNavController.java#L901
I believe the call to
switchTab
should be invoked with an empty set ofFragNavTransactionOptions
so that the default options are overwritten, and the current tab / fragment is immediately shown.The text was updated successfully, but these errors were encountered: