Skip to content

Detect findViewTreeLifecycleOwner in RecyclerView.ViewHolder #23

@jzbrooks

Description

@jzbrooks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions