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

Getting Instance of the Currency on Android results in Crashes #18

Open
vinayan3 opened this issue Apr 11, 2017 · 0 comments
Open

Getting Instance of the Currency on Android results in Crashes #18

vinayan3 opened this issue Apr 11, 2017 · 0 comments

Comments

@vinayan3
Copy link
Contributor

java.lang.IllegalArgumentException: Unsupported ISO 3166 country: en,

Some Android devices have the locale set as en which the currency map doesn't have values for. It will cause the getConstants to throw an exception. I forked have a fix which allows currency values to be null. It's not ideal but others have run into this issue too. http://stackoverflow.com/questions/13316719/how-to-create-currency-instance-with-non-iso-3166-country-like-en-uk

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