midorikocak / currency-picker-android

A simple library that displays a beautiful list of all the currencies allowing the user to pick the currency she wishes and provide details like country code, iso code name, symbol and flag.
Apache License 2.0
69 stars 33 forks source link

Indian Rupee currency symbol passed-in to onSelectCurrency() listener is wrong. #21

Open wabbas55 opened 3 years ago

wabbas55 commented 3 years ago

When I select "India Rupee" from currency dropdown, the symbol passed in to onSelectCurrency() is "0" instead of "₹". I have gone through ExtendedCurrency class and its array in this repo on github and it shows the correct symbol defined there i.e. "₹" but the symbol passed-in to onSelectCurrency() is "0".

heihitesh commented 3 years ago

I agree, please fix this bug ASAP

PuruPanda1 commented 2 years ago

hey if you haven't got a fix or workaround yet, I would say try using Android's Currency Class, get the currency code and then pass it to the currency class. Example Code: val sumbol = Currency.getInstance(codeYouGotFromSelector).symbol - for symbol val name = Currency.getInstance(codeYouGotFromSelector).displayName - for name