Fix error parsing bitshares qr code with lower case

This commit is contained in:
hvarona 2018-11-28 22:00:46 -04:00
parent 56a3c006cc
commit 7ddc2745b2
2 changed files with 2 additions and 1 deletions

View file

@ -129,4 +129,5 @@ dependencies {
implementation 'com.google.zxing:core:3.2.1' implementation 'com.google.zxing:core:3.2.1'
implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar' implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
testImplementation 'org.testng:testng:6.9.6'
} }

View file

@ -782,7 +782,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
etTo.setText(invoice.getTo()); etTo.setText(invoice.getTo());
for (int i = 0; i < assetAdapter.getCount(); i++) { for (int i = 0; i < assetAdapter.getCount(); i++) {
if (assetAdapter.getItem(i).getName().equals(invoice.getCurrency())) { if (assetAdapter.getItem(i).getName().equals(invoice.getCurrency().toUpperCase())) {
spAsset.setSelection(i); spAsset.setSelection(i);
break; break;
} }