title: Cannot be accessed from outside package
body: <p>I have been trying to Restfulise the sunflower app example using the githubrowsersample so i have been trying to do a bit of copying and pasting. However, i'm completely confused as to why i am getting this error. This particular code is a complete copy and paste.</p>
  
  <p>The error i am receiving is:</p>
  
  <blockquote>
    <p>error: DataBoundViewHolder(T) is not public in DataBoundViewHolder;
    cannot be accessed from outside package where T is a type-variable: T
    extends ViewDataBinding declared in class DataBoundViewHolder</p>
  </blockquote>
  
  <p>and my code is the same as <a href="https://github.com/googlesamples/android-architecture-components/blob/b1a194c1ae267258cd002e2e1c102df7180be473/GithubBrowserSample/app/src/main/java/com/android/example/github/ui/common/DataBoundViewHolder.java" rel="nofollow noreferrer">this</a> with these imports instead:</p>
  
  <pre><code>import android.annotation.SuppressLint;
  import android.os.AsyncTask;
  import android.view.ViewGroup;
  
  import androidx.annotation.MainThread;
  import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  import androidx.databinding.ViewDataBinding;
  import androidx.recyclerview.widget.DiffUtil;
  import androidx.recyclerview.widget.RecyclerView;
  </code></pre>
  
  <p>My DataBoundViewHolder code is also copy and paste:</p>
  
  <pre><code>import androidx.databinding.ViewDataBinding;
  import androidx.recyclerview.widget.RecyclerView;
  
  /**
   * A generic ViewHolder that works with a ViewDataBinding
   * @param &lt;T&gt; The type of the ViewDataBinding.
   */
  
  public class DataBoundViewHolder&lt;T extends ViewDataBinding&gt; extends RecyclerView.ViewHolder {
      public final T binding;
      DataBoundViewHolder(T binding) {
          super(binding.getRoot());
          this.binding = binding;
      }
  }
  </code></pre>
  
  <p>Thanks for your time</p>