Skip to content

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