From f8fa929166590814528d37260316d3ea74ce5e7c Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 24 Mar 2021 14:37:06 +0200 Subject: [PATCH] upgrade to hummingbird 1.5.4 which handles legacy encoding in uppercase --- build.gradle | 2 +- .../java/com/sparrowwallet/sparrow/control/QRScanDialog.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1db708d3..878880ad 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ dependencies { implementation('com.github.arteam:simple-json-rpc-server:1.0') { exclude group: 'org.slf4j' } - implementation('com.sparrowwallet:hummingbird:1.5.3') + implementation('com.sparrowwallet:hummingbird:1.5.4') implementation('com.nativelibs4java:bridj:0.7-20140918-3') { exclude group: 'com.google.android.tools', module: 'dx' } diff --git a/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java index 874ea25a..aead72d1 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java @@ -147,8 +147,8 @@ public class QRScanDialog extends Dialog { Matcher partMatcher = PART_PATTERN.matcher(qrtext); if(qrtext.toLowerCase().startsWith(UR.UR_PREFIX)) { - if(LegacyURDecoder.isLegacyURFragment(qrtext.toLowerCase())) { - legacyDecoder.receivePart(qrtext.toLowerCase()); + if(LegacyURDecoder.isLegacyURFragment(qrtext)) { + legacyDecoder.receivePart(qrtext); Platform.runLater(() -> percentComplete.setValue(legacyDecoder.getPercentComplete())); if(legacyDecoder.isComplete()) {