Closed TheArchitect123 closed 5 months ago
@Alex009 @YokiToki @darronschall
If anyone can take a look at this ASAP, I'd appreciate it. This is a pretty serious issue.
I found a temporary workaround for now by wrapping the binding object with a try catch. Then the next time data comes through it's broadcasted again.
viewModel.progressReward.addObserver {
try {
binding.progressBar.progress = it
}
catch (ex: Exception) {}
}
Call ld()
to get andru livedata and use observe with lifecycle
It works!! Thanks :)
I have a MvvmFragment that is subscribing to changes on a MutableLiveData object inside its view model. There is a Lifecycle observable that is being run after the view is inflated into memory in onViewCreated.
The exception occurs when I try to access the binding object and allocate the value from the view model's live data into the binding view.