getSupportActivity() should return null when fragment is detached. #790

Closed
vincentjames501 opened this Issue Feb 19, 2014 · 0 comments

Comments

Projects
None yet
1 participant

The default behavior when a fragment becomes detached from it's parent activity is to set it's managed Activity reference back to null. For example, after a _HoloFragment has been detached, getSupportActivity() returns the original activity where getActivity() returns null. I think the _HoloFragment should override onDetach() and reset it's managed state as Android's Fragment class does normally.

Prototik closed this in e7aedff Feb 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment