Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Aug 6, 2018
1 parent b74503f commit 86d856e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/budiyev/android/codescanner/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public static Result decodeLuminanceSource(@NonNull final MultiFormatReader read
@NonNull final LuminanceSource luminanceSource) throws ReaderException {
try {
return reader.decodeWithState(new BinaryBitmap(new HybridBinarizer(luminanceSource)));
} catch (NotFoundException e) {
} catch (final NotFoundException e) {
return reader.decodeWithState(new BinaryBitmap(new HybridBinarizer(luminanceSource.invert())));
} finally {
reader.reset();
Expand Down

0 comments on commit 86d856e

Please sign in to comment.