According to LiveData documentation:
The LiveData class provides the following advantages:
...
Always up to date data: If a Li
In my case SingleLiveEvent doesn't help. I use this code:
private MutableLiveData someLiveData;
private final Observer someObserver = new Observer() {
@Override
public void onChanged(@Nullable Boolean aBoolean) {
if (aBoolean != null) {
// doing work
...
// reset LiveData value
someLiveData.postValue(null);
}
}
};