title: Android recyclerview filter showing no items until searchview icon is clicked
body: <p>I have a fragment in which I do a network call and populate the contained recycler view with cards. Now I followed <a href="https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo" rel="nofollow">this</a> to add a filter to my recycler view. Now the problem arises when in the adapter constructor I do</p>
  
  <pre><code>this.storeLists = new ArrayList&lt;&gt;(storeLists);
  </code></pre>
  
  <p>the List in my fragment gets populated but doesn't show any item until I click the searchview icon and start typing something. After that even if I close the searchview the list retains. </p>
  
  <p>I tried changing the above line to </p>
  
  <pre><code>this.storeLists = storeLists;
  </code></pre>
  
  <p>when I remove the search query the deleted items are not re shown. So in case if I search something non - existent in my recycler view list, I am left with nothing showing in my recycler view.</p>
  
  <p>What I want is that when I open the fragment I see the result and then when I click the search icon and start typing the filters work as shown in the link above.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p><a href="https://github.com/D8thReaper/BrinjalClient/blob/master/app/src/main/java/exun/cli/in/brinjal/adapter/RVStoreAdapter.java" rel="nofollow">Here</a> is my adapter and <a href="https://github.com/D8thReaper/BrinjalClient/blob/master/app/src/main/java/exun/cli/in/brinjal/activity/fragment/Store.java" rel="nofollow">here</a> is my calling fragment.</p>