From 7ddc2745b2bb15cafeaefa5844860c852da43db2 Mon Sep 17 00:00:00 2001 From: hvarona Date: Wed, 28 Nov 2018 22:00:46 -0400 Subject: [PATCH] Fix error parsing bitshares qr code with lower case --- app/build.gradle | 1 + .../crystalwallet/fragments/SendTransactionFragment.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 4cffbf7..36cadea 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -129,4 +129,5 @@ dependencies { implementation 'com.google.zxing:core:3.2.1' implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar' + testImplementation 'org.testng:testng:6.9.6' } diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java index 8f8eca2..2b56179 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java @@ -782,7 +782,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat etTo.setText(invoice.getTo()); 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); break; }