Closed tjohnn closed 2 years ago
For performance reasons, Androidplot does not leverage immutability to avoid concurrency issues. Instead, an interface is exposed to allow users to synchronize their usage with Androidplot's rendering cycles. See more here. In your case it's likely simpler to just synchronize your two calls externally.
LineAndPointRenderer.cullPointsCache()
checks if registry contains the current LineAndPointFormatter instancegetPlot().getRegistry().contains(series, LineAndPointFormatter.class)
, thecontains()
implementation here runs a foreach loop on an internal arraylist inSeriesRegistry
java.util.ConcurrentModificationException
1.5.7