Skip to content

Commit

Permalink
Fix check in ViewBindingProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
kirich1409 committed Sep 17, 2020
1 parent 37f95af commit 434d166
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public abstract class ViewBindingProperty<in R : Any, T : ViewBinding>(
public override fun getValue(thisRef: R, property: KProperty<*>): T {
checkIsMainThread()
viewBinding?.let { vb ->
check(thisRef === this.thisRef) {
check(this.thisRef != null && thisRef === this.thisRef) {
"Instance of ViewBindingProperty can't be shared between classes"
}
return vb
Expand Down

0 comments on commit 434d166

Please sign in to comment.