This causes an error: io.reactivex.exceptions.OnErrorNotImplementedException: Only the original thread that created a view hierarchy can touch its views.
I think you want it to use observeOn, like this:
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
holder.itemView.imageFavorite.isChecked = it == 1
}
Hello! Thank you for this tutorial, it is a great way to get started with reactive programming
I found an issue on the section âObserve Button Clicksâ. Here, we end with the app running database queries on the UI thread (which is what you intend). However, Android API 28 throws an IllegalStateException and does not let you execute the query at all (the app crashes when you press the button).
A quick fix for this (before you show us how to use threading on the next section) is adding the modifying the code for building the database instance:
I am getting âGradle project sync failedâ error after downloading ââ cheesefinder-starter" project. Cause of error is âorg/gradle/internal/impldep/com/google/common/collect/Listsâ. Anybody can help me to solve this issue?