Closed dejj closed 7 years ago
Thanks for the report, but I'm happy to let the library fail on this. You're asking the color preference to read a setting that it didn't store. In a released app this shouldn't occur as users won't be changing the type of the saved preference value. The built-in Android preferences do the same thing (e.g. changing to an EditTextPreference from a preference that stores an integer).
When replacing an EditTextPreference:
with ColorPreference:
I receive this exception upon opening the preference page:
The
android:key="my_bgcolor"
seems to store a dynamic type ofString
forEditTextPreference
, whichColorPreference
tries to cast intoInteger
.A workaround is to rename the key or uninstall the app.