Skip to content

Commit

Permalink
refactor: update the view binding delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyMuse committed Jun 16, 2021
1 parent 507dbec commit 8f3a0b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fun <T : ViewBinding> AppCompatActivity.viewBinding(bindingInflater: (LayoutInfl
ActivityViewBindingDelegate(this, bindingInflater, beforeSetContent)


fun <T : ViewBinding> Fragment.viewBinding(viewBindingFactory: (View) -> T, disposeRecyclerViewsAutomatically: Boolean = true, disposeEvents: T.() -> Unit = {}) =
FragmentViewBindingDelegate(this, viewBindingFactory, disposeRecyclerViewsAutomatically, disposeEvents)
fun <T : ViewBinding> Fragment.viewBinding(viewBindingFactory: (View) -> T, disposeRecyclerViewsAutomatically: Boolean = true) =
FragmentViewBindingDelegate(this, viewBindingFactory, disposeRecyclerViewsAutomatically)


fun <T : ViewBinding> globalViewBinding(viewBindingFactory: (View) -> T) =
Expand Down

0 comments on commit 8f3a0b2

Please sign in to comment.