We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af70fcc commit c78046fCopy full SHA for c78046f
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt
@@ -41,6 +41,7 @@ import kotlinx.coroutines.launch
41
import java.io.ByteArrayOutputStream
42
import java.io.IOException
43
import kotlin.math.roundToInt
44
+
45
class MobileScanner(
46
private val activity: Activity,
47
private val textureRegistry: TextureRegistry,
@@ -151,8 +152,10 @@ class MobileScanner(
151
152
val byteArray = stream.toByteArray()
153
val bmWidth = bmResult.width
154
val bmHeight = bmResult.height
155
156
bmResult.recycle()
157
imageProxy.close()
158
159
mobileScannerCallback(
160
barcodeMap,
161
byteArray,
0 commit comments