We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling Fragment.getViewLifecycleOwner() outside of the view's lifecycle will result in an IllegalStateException. E.g. in the init block or onCreate.
onCreate
Example crash -- Would be difficult to catch this one since it is called from outside of the current fragment.
The text was updated successfully, but these errors were encountered:
Might be another candidate for upstreaming into Androidx.
Sorry, something went wrong.
Relevant detectors in Androidx lint. https://github.com/androidx/androidx/blob/androidx-main/fragment/fragment-lint/src/main/java/androidx/fragment/lint/UnsafeFragmentLifecycleObserverDetector.kt https://github.com/androidx/androidx/blob/androidx-main/fragment/fragment-lint/src/main/java/androidx/fragment/lint/UnsafeRepeatOnLifecycleDetector.kt
No branches or pull requests
Calling Fragment.getViewLifecycleOwner() outside of the view's lifecycle will result in an IllegalStateException. E.g. in the init block or
onCreate
.Example crash -- Would be difficult to catch this one since it is called from outside of the current fragment.
The text was updated successfully, but these errors were encountered: