DMCApps / NavigationFragment

The purpose of this manager is to work with the ViewPager, Tabs and Navigation drawer to handle a single stack flow of fragments on the screen. It makes use of a main Fragment as a container and presents and hides fragments within it as children.
MIT License
28 stars 8 forks source link

Issue with getActivity() and mHost not updating in Child Fragments on rotation #16

Closed DMCApps closed 8 years ago

DMCApps commented 8 years ago

Noticed that when we rotate the device, the memory space of the returned Activity from getActivity() in any child fragment always returns the old reference. The mHost within the Activity also isn't updating to the new host.

I'm reporting this issue so that I can link it in the code of where to test for the fix. I was able to get around this with a little help from here https://code.google.com/p/android/issues/detail?id=74222#c45

I have implemented this and will release in the update tonight after some more testing. Please update to version 0.1.3.1 as this is a major bug and fix when trying to use the action bar in any way within a child fragment after a rotation.