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

Update to latest Android version, add new onAttach() lifecycle callba… #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wernerd
Copy link

@wernerd wernerd commented Oct 23, 2016

…ck in fragment

Android M deprecated the onAttach(Activity) callback and introduced the new onAttach(Context) callback.
To be backward compatible Android M and above calls both lifecycle functions which may lead to some
unwanted double initializations etc. The output of the logcat clearly shows this.

The new code in TestFragment class deals with this.

I updated your really useful tool to run with the Android M version and probably also Android N.

…ck in fragment

Android M deprecated the onAttach(Activity) callback and introduced the new onAttach(Context) callback.
To be backward compatible Android M and above calls _both_ lifecycle functions which may lead to some
unwanted double initializations etc. The output of the logcat clearly shows this.

 The new code in TestFragment class deals with this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant