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

Detect findViewTreeLifecycleOwner in RecyclerView.ViewHolder #23

Open
jzbrooks opened this issue Mar 15, 2023 · 0 comments
Open

Detect findViewTreeLifecycleOwner in RecyclerView.ViewHolder #23

jzbrooks opened this issue Mar 15, 2023 · 0 comments

Comments

@jzbrooks
Copy link
Contributor

Since children of the recycler view aren't always attached to a context (like those coming into or leaving the screen), findViewTreeLifecycleOwner might return null. Ideally, these views wouldn't need to launch a coroutine, but those that do should depend on a more reliable coroutine scope than the view tree lifecycle owner's coroutine scope.

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

No branches or pull requests

1 participant