I have seen at many places that setValue() should be called from MainThread but never got an explanation why? Can anyone explain the reason under the hood?
Asked
Active
Viewed 164 times
2
-
2`setValue()` is normally used to trigger an update to the contents of your Activity/Fragment, which would need to be done on the UI thread anyway. – codebod Jul 07 '21 at 20:33