Default values with transparency, starting with one or two zeroes, break the color parsing and then crash the app.
I didn't look too deep into the issue, but
|
String mHexDefaultValue = a.getString(index); |
gets a truncated string,
#00000000 and
#01000000 become
#0 and
#1000000 respectively for example.
Default values with transparency, starting with one or two zeroes, break the color parsing and then crash the app.
I didn't look too deep into the issue, but
android-ColorPickerPreference/ColorPickerPreference/src/main/java/net/margaritov/preference/colorpicker/ColorPickerPreference.java
Line 77 in e7ba5e6
#00000000and#01000000become#0and#1000000respectively for example.