Observing viewmodel for the second time returns null in android
问题 In my android app,im following architecture components with mvvm pattern. my app makes a network call to display the weather information.api call is being made from repository which returns a livedata of response to the viewmodel,which inturn is observed by my main activity. the app works fine except for one condition,whenever i disconnect the internet to test the fail case,it inflates error view as required in the error view i have a retry button,which makes the method call to observe the