upgrade to hummingbird 1.5.4 which handles legacy encoding in uppercase

This commit is contained in:
Craig Raw 2021-03-24 14:37:06 +02:00
parent 6aaf532051
commit f8fa929166
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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()) {