title: Activity with multiple live data objects
body: <p>I have a table, containing list of cards, in my room db. I have 2 recycler view in my fragment. Need to populate these recycler views basis on card ids. Whenever there is a change in this table, live data gives callback to both the recycler view. Instead I want if that particular card d is updated, only then live data updates my UI. Right now, if any id data is updating, I am getting callback to both the recycler views. For example, if d passed is "Sbi", then if there is a change in sbi data row, only update first recycler view not the second recycler view. Also if passed id is "sbi", then ignore updates in other ids for now. </p>
  
  <p><strong>ACTIVITY</strong></p>
  
  <pre><code>@Override
      public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
  myViewModel = ViewModelProviders.of(this).get(MyViewModel.class);
  
  myViewModel.getFirstData("Sbi")).observe(this,
                  result -&gt; {
                      myFirstAdapter.addList(result);
                  });
  
  myViewModel.getSecondData("Sbi1").observe(this,
                  result -&gt; {
                      mySecondAdapter.addList(result);
                  });
  }
  </code></pre>
  
  <p><strong>MyViewModel</strong></p>
  
  <pre><code>public LiveData&lt;List&lt;MyModel&gt;&gt; getFirstData(String cardId) {
          return myDao.getItems(cardId);
      }
  
  public LiveData&lt;List&lt;MyModel&gt;&gt; getSecondData(String cardDetailId) {
          return myDao.getItems(cardDetailId);
      }
  </code></pre>