When I first started my project, I updated the UI from all over the place. This worked for a while, because only a Seekbar was being updated from a worker thread and for some reason that worked. I then updated a TextView from the same worker thread and it crashed my app, so I started calling runOnUIThread(new Runnable(){...});
every time I needed to update the UI from a worker thread.
My Fragments also need to update the UI and they update their own UI elements as well as the Activity elements with no errors.
Should I be using runOnUIThread(new Runnable(){...});
in Fragments to update UI elements or are the Fragments on the UI thread?