halfhp / androidplot

Charts and plots for Android
http://androidplot.com
Apache License 2.0
505 stars 159 forks source link

renderMode attribute always sets to use_background_thread #107

Closed ajprieger closed 2 years ago

ajprieger commented 3 years ago

In the renderMode attribute for graph widgets, both use_background_thread and use_main_thread have the value 0, which causes setting the value to either of them to use the background thread. Not setting the attribute at all causes it to properly default to main thread, but explicitly setting it to main thread doesn't work.

halfhp commented 3 years ago

Just to make sure I'm understanding, you're saying this issue occurs when there is more than one graph widget on the same screen?

ajprieger commented 3 years ago

No, it happens with only one graph widget. It's just anytime you set render mode to use_main_thread, it actually sets it to background thread mode.

halfhp commented 2 years ago

Thanks for the report - fix here: https://github.com/halfhp/androidplot/pull/111

will be available in version 1.5.9.