Closed MrSnoozles closed 11 months ago
@MrSnoozles i cant reproduce your issue. i know what might happen but i need an example to reproduce it. If you could create a repro example that would help a lot
@farfromrefug https://github.com/nikoTM/ns-linkColor running that on API 25 crashes
https://developer.android.com/reference/android/graphics/Color#valueOf(int)
It looks like valueOf(int)
was added in API 26
and this createNativeAttributedString uses that API.
Color spaces were introduced in Android O (https://stackoverflow.com/questions/60083126/create-color-object-from-rgb-values-for-api-level-android-26-oreo), not sure how to convert a hex to Color instance pre API 25
@nikoTM @MrSnoozles i just released a new version which fixes this
After updating from
1.2.26
to1.3.5
when I use the linkColor attribute the app now crashes.