clear analyzer when QR code scanner closes

This commit is contained in:
Adam Velebil 2022-09-15 14:35:14 +02:00
parent 0307cc100a
commit 6fee72490a
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -120,6 +120,7 @@ internal class QRScannerView(
override fun dispose() { override fun dispose() {
cameraProvider?.unbindAll() cameraProvider?.unbindAll()
preview = null preview = null
imageAnalyzer?.clearAnalyzer();
imageAnalyzer = null imageAnalyzer = null
cameraExecutor.shutdown() cameraExecutor.shutdown()
methodChannel.setMethodCallHandler(null) methodChannel.setMethodCallHandler(null)