title: Should I add binding.lifecycleOwner=this when I use viewModel?
body: <p>In my mind, I should add <code>binding.lifecycleOwner=this</code> when I use <code>viewModel</code>.</p>
  <p>I find many projects such as Code A doesn't add <code>binding.lifecycleOwner=this</code>, why?</p>
  <p>The Code A is from the project <a href="https://github.com/enpassio/Databinding" rel="nofollow noreferrer">https://github.com/enpassio/Databinding</a></p>
  <p><strong>Code A</strong></p>
  <pre><code>class AddToyFragment : androidx.fragment.app.Fragment() {
  
      private lateinit var binding: AddToyBinding
      ...
  
      override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
          binding = DataBindingUtil.inflate(
              inflater, R.layout.fragment_add_toy, container, false
          )
  
          setHasOptionsMenu(true)
  
          return binding.root
      }
  
      override fun onActivityCreated(savedInstanceState: Bundle?) {
          super.onActivityCreated(savedInstanceState)
          (requireActivity() as AppCompatActivity).supportActionBar?.setDisplayHomeAsUpEnabled(true)
  
          //If there is no id specified in the arguments, then it should be a new toy
          val chosenToy : ToyEntry? = arguments?.getParcelable(CHOSEN_TOY)
  
          //Get the view model instance and pass it to the binding implementation
          val factory = AddToyViewModelFactory(provideRepository(requireContext()), chosenToy)
          mViewModel = ViewModelProviders.of(this, factory).get(AddToyViewModel::class.java)
  
          binding.viewModel = mViewModel
  
          binding.fab.setOnClickListener {
              saveToy()
          }
  
          binding.lifecycleOwner=this //I think it should add 
      }
  </code></pre>