mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 17:38:49 +00:00
fixed unparsable currency
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@508 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
f534dae100
commit
0927031081
1 changed files with 4 additions and 2 deletions
|
@ -1551,10 +1551,12 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
return null;
|
||||
}
|
||||
|
||||
private Currency parseCurrency(String currencyStr)
|
||||
private Currency parseCurrency(final String currencyStr)
|
||||
{
|
||||
if (currencyStr.equals("US$"))
|
||||
return Currency.getInstance("USD");
|
||||
if (currencyStr.equals("Dirham"))
|
||||
currencyStr = "AED";
|
||||
return Currency.getInstance("AED");
|
||||
return Currency.getInstance(currencyStr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue