title: RecyclerView adapter showing wrong images
body: <p>I have a RecyclerView adapter that looks like this:</p>
  
  <pre><code>public class RecyclerAdapter extends RecyclerView.Adapter&lt;RecyclerAdapter.ViewHolder&gt; {
  
      private static Context context;
      private List&lt;Message&gt; mDataset;
  
      public RecyclerAdapter(Context context, List&lt;Message&gt; myDataset) {
          this.context = context;
          this.mDataset = myDataset;
      }
  
      public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnCreateContextMenuListener, View.OnClickListener {
          public TextView title;
          public LinearLayout placeholder;
  
          public ViewHolder(View view) {
              super(view);
              view.setOnCreateContextMenuListener(this);
  
              title = (TextView) view.findViewById(R.id.title);
              placeholder = (LinearLayout) view.findViewById(R.id.placeholder);
          }
      }
  
      @Override
      public RecyclerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.message_layout, parent, false);
          ViewHolder vh = new ViewHolder((LinearLayout) view);
  
          return vh;
      }
  
      @Override
      public void onBindViewHolder(ViewHolder holder, int position) {
          Message item = mDataset.get(position);
  
          holder.title.setText(item.getTitle());
  
          int numImages = item.getImages().size();
  
          if (numImages &gt; 0) {
              View test = LayoutInflater.from(holder.placeholder.getContext()).inflate(R.layout.images, holder.placeholder, false);
              ImageView image = (ImageView) test.findViewById(R.id.image);
              Glide.with(context)
                  .load("http://www.website.com/test.png")
                  .fitCenter()
                  .into(image);
              holder.placeholder.addView(test);
          }
      }
  
      @Override
      public int getItemCount() {
          return mDataset.size();
      }
  
  }
  </code></pre>
  
  <p>However, some of the items in the RecyclerView are showing images when they shouldn't be. How can I stop this from happening?</p>
  
  <p>I do the check <code>if (numImages &gt; 0) {</code> in <code>onBindViewHolder()</code>, but that's still not stopping it from showing images for items that shouldn't have images.</p>