java – LiveData object goes null when passing it to ViewModel
I am making a project in Android studio where I get a List of objects from an API. Unfortunately, I have a problem with LiveData as it passess null from the repository to a ViewModel. In the repository class it calls the API, parses the response and sets the value of LiveData: private final Dao … Read more