This PR cleans up thread and lock handling, primarily around Silo and pairings.
The purpose of this cleanup is to improve code clarity, and reduce chances of multi-threaded surprises, as more code is under natural synchronization of the UI thread.
I'd recommend checking the individual commits, rather than the full PR. They're all self-contained. There are a few minor cleanup commits in there as well. They're all changes with a purpose, despite how tempted I have been to fix everything Android Studio has to say...
This PR cleans up thread and lock handling, primarily around Silo and pairings.
The purpose of this cleanup is to improve code clarity, and reduce chances of multi-threaded surprises, as more code is under natural synchronization of the UI thread.
I'd recommend checking the individual commits, rather than the full PR. They're all self-contained. There are a few minor cleanup commits in there as well. They're all changes with a purpose, despite how tempted I have been to fix everything Android Studio has to say...
Have a look, see what you think.