title: Wrong item count at recyclerview inside a custom adapter of another recyclerview
body: <p>So I had these two arraylists:</p>
  
  <pre><code>ArrayList&lt;String&gt; a = new ArrayList();
  ArrayList&lt;String&gt; b = new ArrayList();
  
  a.add("bear","lion","bird","goose","cat");
  b.add("car","bike");
  </code></pre>
  
  <p>Then I add them both to a new arraylist:</p>
  
  <pre><code>ArrayList&lt;ArrayList&lt;String&gt;&gt; list = new ArrayList();
  
  list.add(a);
  list.add(b);    
  </code></pre>
  
  <p>And then, I set this arraylist to a custom adapter for a recyclerview. Inside this adapter, I also set those two arraylists (which is inside the last arraylist) to a recyclerview which is the item view of the adapter. So it is a recyclerview inside a custom adapter of another recyclerview.</p>
  
  <p>However, when I debug the app, the first arraylist which is containing 5 items shows only 2 at the recyclerview. Like the second arraylist. And then, when I deleted the second arraylist and debug the app again, the first arraylist will show its true value.</p>
  
  <p>And if I call notifyDataSetChanged() after the recyclerview show that wrong value, It will show its true value. So, I thought it because certain view (I don't if it's the recyclerview, fragment, or something else) didn't loaded properly yet.</p>
  
  <p>How do I should solve this problem? Thank you.</p>
  
  <p><strong>EDIT:</strong> 
  This is my adapter code:</p>
  
  <pre><code> public class MyAdapter extends RecyclerView.Adapter&lt;AdapterNearMe.MyViewHolder&gt; {
  
      private Context context;
      private List&lt;List&lt;String&gt;&gt; list;
  
      public class MyViewHolder extends RecyclerView.ViewHolder {
           public RecyclerView rView;
  
           public MyViewHolder(View view) {
                super(view);
                rView = (RecyclerView) view.findViewById(R.id.rview);
           }
       }
  
       public MyAdapter (Context context, List&lt;List&lt;String&gt;&gt; list) {
           this.context= context;
           this.list = list;
       }
  
       @Override
       public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
           View itemView = LayoutInflater.from(parent.getContext())
              .inflate(R.layout.item_near_me, parent, false);
  
           return new MyViewHolder(itemView);
       }
  
       @Override
       public void onBindViewHolder(final MyViewHolder holder, final int position) {
          final List&lt;String&gt; newList= list.get(position);
  
          holder.rView.setAdapter(new AdapterRView(context,newList));
          holder.rView.setLayoutManager(new GridLayoutManager(context,3));
       }
  
       @Override
       public int getItemCount() {
          return list.size();
       }
  }
  </code></pre>