Skip to content

Commit

Permalink
feat: bind viewLifecycleOwner int the FragmentDataBinding (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-dhl committed Jan 27, 2021
1 parent 6cd4dd5 commit aebba38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FragmentDataBinding<T : ViewDataBinding>(

return bind.apply {
viewBinding = this
lifecycleOwner = fragment
lifecycleOwner = fragment.viewLifecycleOwner
block?.invoke(this)
block = null
}
Expand Down

0 comments on commit aebba38

Please sign in to comment.