Browse Source

upgrade to hummingbird 1.5.4 which handles legacy encoding in uppercase

terminal 1.3.1
Craig Raw 4 years ago
parent
commit
f8fa929166
  1. 2
      build.gradle
  2. 4
      src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java

2
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'
}

4
src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java

@ -147,8 +147,8 @@ public class QRScanDialog extends Dialog<QRScanDialog.Result> {
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()) {

Loading…
Cancel
Save