LiveData observer is not being called when changing value
My observer is not being called when I change LiveData value. I have a ViewModel, a custom View and a Fragment. In ViewModel I set the LiveData, in the custom View is where I change the value of this LiveData and in Fragment is where I observe the LiveData.
Using breakpoints, I see that my custom View is working fine and changing the LiveData value correctly but in Fragment, the observer only is called when the Fragment is created.
ViewModel:
class MyViewModel : ViewModel {
private val...