title: Updating a RecyclerView by a new LiveData<List> return from Room dynamically
body: <p>I have a conventional Room->DAO->Livedata->Repositiry->ViewModel->RecyclerView app. Different buttons of UI must pass different lists of data to RecyclerView.<br>
  By button click I want:</p>
  
  <ol>
  <li>Make new @Query in DAO and get new LiveData&lt;`List> object in return.  </li>
  <li>Put this new data into the RecyclerViewAdapter and call notifyDataSetChanged () to make new List visuals.  </li>
  </ol>
  
  <p>The Dao @Query:</p>
  
  <pre><code>@Query("SELECT * FROM entry_table WHERE path LIKE :path ORDER BY priority DESC")
  LiveData&lt;List&lt;Entry&gt;&gt; getNotesOfFolder(String path);    //Returns LiveData with List of Entries
  </code></pre>
  
  <p>The recyclerView is updated via onChanged of Observer like this:</p>
  
  <pre><code>public class RecyclerViewActivity extends AppCompatActivity {…
  Observer&lt;List&lt;Entry&gt;&gt; entryObserver = new Observer&lt;List&lt;Entry&gt;&gt;() {
      @Override
      public void onChanged(List&lt;Entry&gt; entries) {
          recyclerAdapter.setEntries(entries);
      }
  };
  </code></pre>
  
  <pre><code>public class RecyclerAdapter extends RecyclerView.Adapter&lt;RecyclerAdapter.EntryHolder&gt; {…
  public void setEntries(List&lt;Entry&gt; entries) {
      this.entries = entries; //setting LiveData content to adapter's List (i.e. entries)
      notifyDataSetChanged();
  </code></pre>
  
  <p>The problem is that my Observer does not call the onChange method when LiveData receives new value from DAO. I believe it is because this LiveData’s content is not CHANGED but REPLACED by another LiveData.</p>
  
  <p>I tried to re-subscribe the Observer to LiveData again and it somewhat worked, but when I try to call some conventional Room queries like @Delete, I got multiple (up to 10!) onChange calls and some of them behave weirdly and pass the wrong List to RVadapter.</p>
  
  <p>So there two questions:  </p>
  
  <ol>
  <li>How can I just call onChanged() of my Observer?  </li>
  <li>Is there some other stylish way of passing new LiveData object to RecyclerView dynamically?  </li>
  </ol>