Why Is No Exception Thrown When Operating Ui In A Background Thread In Previous Versions?
We released an android APP several years ago, and there's a View.setVisibility() method used in a sub thread. It has been no problem in these years until Android O Developer Previ
Solution 1:
This exception was thrown in previous versions. It's just never been thrown reliably. Regardless, it's always been wrong to access UI elements from a background thread. Your code is not thread safe, and it's possible that it has always exhibited subtle bugs that have gone unreported. You should fix your code.
Post a Comment for "Why Is No Exception Thrown When Operating Ui In A Background Thread In Previous Versions?"