|
|
@ -232,7 +232,7 @@ public class AdapterMedia extends RecyclerView.Adapter<AdapterMedia.ViewHolder>
|
|
|
|
BinaryBitmap bBitmap = new BinaryBitmap(new HybridBinarizer(source));
|
|
|
|
BinaryBitmap bBitmap = new BinaryBitmap(new HybridBinarizer(source));
|
|
|
|
MultiFormatReader reader = new MultiFormatReader();
|
|
|
|
MultiFormatReader reader = new MultiFormatReader();
|
|
|
|
Result result = reader.decode(bBitmap);
|
|
|
|
Result result = reader.decode(bBitmap);
|
|
|
|
args.putString("barcode_text", result.getText());
|
|
|
|
args.putString("barcode_text", Helper.getPrintableString(result.getText()));
|
|
|
|
args.putString("barcode_format", result.getBarcodeFormat().name());
|
|
|
|
args.putString("barcode_format", result.getBarcodeFormat().name());
|
|
|
|
} catch (NotFoundException ex) {
|
|
|
|
} catch (NotFoundException ex) {
|
|
|
|
Log.w(ex);
|
|
|
|
Log.w(ex);
|
|
|
|