title: Recyclerview not updating dataset and still shows old values
body: <p><strong>RecyclerView Adapter update method</strong></p>
  <pre><code>public void updateList(List&lt;Album&gt; updatedList) {
       albums.clear();
       albums = new ArrayList&lt;&gt;(updatedList);
       for (int i = 0 ; i &lt; albums.size(); i++) {
       Log.d(TAG, &quot;updatedList values: &quot; + albums.get(i).getAlbumName());
       }
       notifyDataSetChanged();
  }
  </code></pre>
  <p>After i pass my updated list to this method in my adapter and call <code>notifyDatasetChanged()</code> the updated values show up in the logcat.</p>
  <p><strong>Logcat output shows the correct updated value</strong></p>
  <pre><code>AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 1
  AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 1 
  AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 1 
  AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 1 
  </code></pre>
  <p>And right after i switch back to this fragment the Recyclerview still shows the old value for some reason.</p>
  <p><strong>Logcat output after switching back</strong></p>
  <pre><code>AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 2
  AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 2
  AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 2
  AlbumAdapter: onBindViewHolder albumsList: 1967-1970 Disc 2
  </code></pre>
  <p>I even checked the value in my <strong>updateList method</strong> and there it shows <strong>1967-1970 Disc 1</strong></p>
  <p><strong>What i also tried</strong></p>
  <pre><code>public void updateList(List&lt;Album&gt; updatedList) {
           albums = updatedList;
           notifyDataSetChanged();
  } 
  </code></pre>
  <p>But still the same problem.</p>
  <p><strong>EDIT</strong></p>
  <p>I noticed this only happens when i have alot of items.</p>
  <p>If i have only 10 items it works fine without any problem but when i try with over 400+ items then it doesn't update the values.</p>
  <p><strong>Recyclerview</strong></p>
  <pre><code>@Override
      public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          // Inflate the layout for this fragment
          View rootView = inflater.inflate(R.layout.fragment_albums, container,false);
  
          recyclerViewAlbums = rootView.findViewById(R.id.recyclerViewAlbums);
  
          if (getActivity() != null) {
              List&lt;Album&gt; albums = SongsLibrary.getInstance().getAlbums();
              if (!albums.isEmpty()){
                  albumAdapter = new AlbumAdapter(getActivity(), albums, this, this);
                  int noOfColumns = Utilities.calculateNoOfColumns(getActivity());
                  final GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), noOfColumns);
                  recyclerViewAlbums.setLayoutManager(gridLayoutManager);
                  recyclerViewAlbums.setHasFixedSize(true);
                  //recyclerViewAlbums.setItemViewCacheSize(20);
                  recyclerViewAlbums.setDrawingCacheEnabled(true);
                  recyclerViewAlbums.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
                  recyclerViewAlbums.setAdapter(albumAdapter);
  
                  isInitRecyclerView = true;
                  Log.i(TAG, &quot;Albums loaded!&quot;);
              }else{
                  isInitRecyclerView = false;
                  Log.e(TAG, &quot;No Albums found!&quot;);
              }
          }
  
          Log.i(TAG, &quot;onCreateView called!&quot;);
  
          return rootView;
      }
  </code></pre>