Open guitarcrazy86 opened 4 years ago
I figured out how to solve this a long with the upgrade to alpha06:
imageAnalysis.setAnalyzer(Executors.newFixedThreadPool(5), qrCodeAnalyzer)
And change this
preview.setOnPreviewOutputUpdateListener { previewOutput ->
val parent = textureView.parent as ViewGroup
parent.removeView(textureView)
textureView.surfaceTexture = previewOutput.surfaceTexture
parent.addView(textureView, 0)
}
Android Studio is saying that "Val cannot be reassigned", I'm assuming because imageAnalysis is assigned to "ImageAnalysis(imageAnalysisConfig" already.
Any way to fix this?