Closed alashow closed 7 years ago
Could you update to 1.2.4 and see if you're still experiencing the issue?
Uh, sorry, my bad. I am using 1.2.4
. Updated comment.
Got it. Should be a fairly easy fix. I should be able to post a fix in the next couple of days.
Great! Thanks!
Offtopic: Do you suggest using Fragment getRootFragment(int index)
over giving a list of fragments on initialization?
There's no inherent performance advantage to using one over the other. Using getRootFragment performs lazy initialization of the object vs creating them all at once when you first initialize FragNav, so technically those are different, but the difference in minimal. Really it's about three things:
(Theoretically there's a 4th point, which is that if for some reason that rootFragment is lost, it can still call that function and get a newInstance of the fragment. This was handled in the earlier days as a safety precaution, but in reality, if the library is well built, should never have to happen.)
I am pushing out a fix right now for 1.2.5. I am not 100% sure that it will fix the issue, because I am surprised it is happening the way it is now. Give it a shot and if you continue to see it, let me know.
Thank you for the response.
I will try it.
I experienced this bug too. Now using 1.2.5 hope no crash anymore. Thank you for the fix
After upgrading to
1.2.4
version from1.0.3
, I get exceptions in my app sometimes when the application started from the background (minimized, then opened after some time):http://stackoverflow.com/questions/22489703/trying-to-remove-fragment-from-view-gives-me-nullpointerexception-on-mnextanim
My initialization of FragNavController:
Thank you!