code: public void setLifecycleOwner(@Nullable LifecycleOwner lifecycleOwner) {
          this.lifecycleOwner = lifecycleOwner;
          for (View view : views) {
              ViewDataBinding binding = DataBindingUtil.getBinding(view);
              if (binding != null) {
                  binding.setLifecycleOwner(lifecycleOwner);
              }
          }
      }
docs: Sets the lifecycle owner of this adapter to work with {@link androidx.lifecycle.LiveData}.
  This is normally not necessary, but due to an androidx limitation, you need to set this if
  the containing view is <em>not</em> using databinding.