Skip to content

Support binding to LiveData (pass LifecycleOwner to items) #50

@lxyd

Description

@lxyd

Since version 3.1 Android Studio supports databinding to LiveData. But in order to track changes of a LiveData field, ViewDataBinding object must be provided with LifecycleOwner which LastAdapter does not. So binding to LiveData via LastAdapter is efficiently onetime binding.
Please, add possibility to pass LifecycleOwner into LastAdapter (probably, constructor argument will do fine).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions