Navaron Bracke
Committed by GitHub

Merge pull request #846 from ob-juliandixon/master

fix: error with returning image on android
... ... @@ -107,14 +107,16 @@ class MobileScanner(
val stream = ByteArrayOutputStream()
bmResult.compress(Bitmap.CompressFormat.PNG, 100, stream)
val byteArray = stream.toByteArray()
val bmWidth = bmResult.width
val bmHeight = bmResult.height
bmResult.recycle()
mobileScannerCallback(
barcodeMap,
byteArray,
bmResult.width,
bmResult.height
bmWidth,
bmHeight
)
} else {
... ...