Open planetmarshall opened 5 years ago
Thanks for the report - will investigate. Fig does in fact support the use of resource id's so off the top of my head I'm not sure where things are breaking here.
Found the bug in Fig. Expect to have it fixed for the 1.5.8 release.
Summary
Applying a style where a color is specified as a resource ID causes an App using Android Plot to crash.
Expected Results
With a style resource such as
Applying the style in a formatter should apply the specified color resource.
Actual Results
Applying the style in a formatter causes the app to crash.
Steps to Reproduce
Reproduced in
Androidplot 1.5.6 Google Pixel with Android 9 (API Level 28) Compile SDK Version 26 Android Build tools 28.0.2
Stacktrace
Notes
The issue appears to be caused by the following code in
Fig.java
However, the Android
Color.parseColor
function does not accept resource IDs:https://developer.android.com/reference/android/graphics/Color#parseColor(java.lang.String)