Closed rhyek closed 8 years ago
You may operate ObservableArrayList on main thread.
Thanks. Like I said, I'm using an ObservableArrayList and I am consitently getting these warnings. I am unable to change the way my updates are coming in since they are triggered by a Server Sent Event, and as they happen throughout the life cycle of my app, I can't make them run on the UI thread themselves for performance/responsiveness reasons.
Since we're talking about a widget, wouldn't it be appropriate to ensure the notifications are running on the UI thread anyways?
I'm using an ObservableArrayList that changes on some network events. Whenever a change occurs, I'm getting warnings about them happening outisde the UI thread and the RecyclerView isn't updating.
I made the following changes to widget/BindingRecyclerView at line 43 that fixes the problem for me, but I'd like to get some feedback on them: