Observer not triggered on room database change
问题 I am trying to update a RecyclerView when a room database is changed. However the onChanged method of the observer defined in the MainActivity does not get called, when a change to the database occurs. If I let the DAO return LiveData instead of a List<> and use LiveData in my ViewModel it works as intended. However I need MutableLiveData as I want to change my query to the database during runtime. My setup: MainActivity.java BorrowedListViewModel viewModel = ViewModelProviders.of(this).get