TickerView.setText() is only safe to call from the thread that created the TickerView since it calls invalidate(). Calling from a different thread results in:
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
There doesn't appear to be a benefit from synchronizing this method and doing so has a non-zero cost. Thoughts on removing it?
TickerView.setText()
is only safe to call from the thread that created theTickerView
since it callsinvalidate()
. Calling from a different thread results in:There doesn't appear to be a benefit from synchronizing this method and doing so has a non-zero cost. Thoughts on removing it?