So I had these two arraylists:

```
ArrayList<String> a = new ArrayList();
ArrayList<String> b = new ArrayList();

a.add("bear","lion","bird","goose","cat");
b.add("car","bike");

```

Then I add them both to a new arraylist:

```
ArrayList<ArrayList<String>> list = new ArrayList();

list.add(a);
list.add(b);    

```

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.

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.

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.

How do I should solve this problem? Thank you.

**EDIT:** 
This is my adapter code:

```
 public class MyAdapter extends RecyclerView.Adapter<AdapterNearMe.MyViewHolder> {

    private Context context;
    private List<List<String>> 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<List<String>> 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<String> 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();
     }
}

```