Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Optimize bindingAdapter functions for invocation of bindings #114

Merged
merged 2 commits into from
May 5, 2022
Merged

Conversation

Goooler
Copy link
Owner

@Goooler Goooler commented May 5, 2022

Follow up #110.

@Goooler Goooler added this to the 1.6.0 milestone May 5, 2022
@@ -69,13 +69,13 @@ internal interface IMutableRvAdapter<M : IVhModelType> : IRvAdapter<M> {
}

@BindingAdapter(value = ["binding_rv_dataList"], requireAll = true)
fun <M : IVhModelType> RecyclerView.setList(list: List<M>?) {
internal fun <M : IVhModelType> RecyclerView.bindingSetList(list: List<M>?) {
@Suppress("UNCHECKED_CAST")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only can be invocated by bindings, you can use it in other Kotlin functions.

@Goooler Goooler merged commit cea7bc3 into trunk May 5, 2022
@Goooler Goooler deleted the binding branch May 5, 2022 07:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant