Skip to content

Commit

Permalink
upgrade to hummingbird 1.5.4 which handles legacy encoding in uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
craigraw committed Mar 24, 2021
1 parent 6aaf532 commit f8fa929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ public void changed(ObservableValue<? extends com.google.zxing.Result> observabl
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()) {
Expand Down

0 comments on commit f8fa929

Please sign in to comment.