Skip to content
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

Explanation about when does onActivityCreated method not called #21

Open
lujop opened this issue Apr 26, 2016 · 1 comment
Open

Explanation about when does onActivityCreated method not called #21

lujop opened this issue Apr 26, 2016 · 1 comment
Labels

Comments

@lujop
Copy link

lujop commented Apr 26, 2016

Can you explain what is fragment restart and why onActivityCreated is not called in it?
I've tried with latest v4 support version 23.3.0 and I can't reproduce the case where onActivityCreated isn't called.

Here is some discussion about that:
http://stackoverflow.com/questions/36858835/onactivitycreated-is-always-called/36858971?noredirect=1#comment61291313_36858971

@xxv xxv added the question label Apr 29, 2016
@nick1Jian
Copy link

My guess is that in some rare cases, the fragment called onDestroyView() but the activity is not yet destroyed. When frag is resumed, the fragment still attached to activity hence no need to call on ActivityCreated()

But that's just my guess. Need more reference to prove that.

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

No branches or pull requests

3 participants