-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default value doesn't work #28
Comments
Can you post your code which sets the default value? |
In my preference xml file I have
Which I then load in a PreferenceFragment in an onCreate method. |
I'll take a look, hopefully soon. Let me know if you come up with a pull request, it will be highly appreciated. |
So I tried playing around with this a little bit more and found a "workaround" for it. Found a "fix", if I instead set defaultValue to -256 (which is the value of Color.YELLOW), it sets the default value just fine. |
When setting a defaultValue in the xml file for the settings, it doesn't show or set it until the dialog is opened. There, the default color is shown.
No color shown instead of the set one
But when you open it
The text was updated successfully, but these errors were encountered: