2

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?

Vivek Pratap Singh
  • 1,564
  • 16
  • 26
  • 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

0 Answers0