Skip to content
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

Cannot assign default value from xml #4

Open
adityabhaskar opened this issue Sep 14, 2020 · 0 comments
Open

Cannot assign default value from xml #4

adityabhaskar opened this issue Sep 14, 2020 · 0 comments

Comments

@adityabhaskar
Copy link
Member

Assigning a value using app:defaultValue="abc" throws an exception. Constructor of parent (MultiSelectListPreference) expects an array resource, instead of a plain string.

Possible solution: remove the default attribute from attrs before calling super. Then process the attr as now in init—split into a set and use setDefaultValue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant