Say my LiveData
looks like this LiveData<List<Dog>> dogsLiveData = ...
When I make a change to a property of a Dog object, I want the observer of the LiveData to be notified. How do I do that?
public void doChange(){
List<Dog> dogs = dogsLiveData.value;
Dog d = dogs.get(1);
d.setLegs(5); //I want this to trigger notification. How?
}
(leg changed from 4 to 5 in the example)