Trigger update for a LiveData member when another LiveData is updated in the view model
问题 In a word game app I share a model between an activity and a fragment: public class MainViewModel extends AndroidViewModel { private LiveData<List<Game>> mGames; private final MutableLiveData<Game> mDisplayedGame = new MutableLiveData<>(); (please excuse the non-english text in the screenshot) The activity observes mGames being currently played by the user and updates the navigational drawer menu (see the left side of the above screenshot). The fragment observes mDisplayedGame and displays it