Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

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

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

Comments

@vincentjames501
Copy link

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.

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

No branches or pull requests

1 participant