Skip to content

Commit

Permalink
view databinding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-dev committed Oct 20, 2017
1 parent 14ba03f commit 1124416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/ds/bindingtools/ViewBindings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ interface Bindable : LifecycleObserver {
/**
* Binds any property to any property
*/
fun <T> Bindable.bind(prop: KProperty0<T>, mutableProp: KMutableProperty0<T>) =
fun <T> bind(prop: KProperty0<T>, mutableProp: KMutableProperty0<T>) =
bind(prop, { mutableProp.set(it) }, { mutableProp.get() })

fun <T : Any?> unbind(prop: KProperty<T>) {
Expand Down

0 comments on commit 1124416

Please sign in to comment.