title: Observe a MutableLiveData list
body: <p>I am using Live Data in my application and I have a view model that extends from <code>ViewModel</code>.</p>
  
  <p>In my view model, I have a list that is:</p>
  
  <pre><code>var songs: MutableLiveData&lt;List&lt;Song&gt;&gt; = MutableLiveData&lt;List&lt;Song&gt;&gt;()
  </code></pre>
  
  <p>In a function in my view model I do this:</p>
  
  <pre><code> songs.value?.find { it.id == song.id }.also {
  
                  when (song.isFavorite) {
                      true -&gt; song.isFavorite = false
                      false -&gt; song.isFavorite = true
                  }
              }
  </code></pre>
  
  <p>I will change a boolean in an item in <code>songs</code> and in m fragment I observe this list like below:</p>
  
  <pre><code>viewModel.songs.observe(this , Observer {
  
              Log.d(TAG , "songs changed")
  
          })
  </code></pre>
  
  <p>But songs will not notify after this change.</p>
  
  <p>Why does this happen?</p>
  
  <p>Thankyou for your answers.</p>