fix: disable preview mirroring during raw capture

This commit is contained in:
zhoubinjia committed 2026-05-08 10:25:01 +08:00
1 parent 3f3092d6fc
commit 8359ad98e4
1 file changed
+1 -1
@@ -3032,7 +3032,7 @@ class Camera2Controller(private val context: Context) {
val captureBuilder = device.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE).apply {
addTarget(reader.surface)
if (shouldMirrorStillCaptureToPreview()) {
if (!isRawCapture && shouldMirrorStillCaptureToPreview()) {
previewSurface?.let { addTarget(it) }
}