fix: release ae lock after capture

This commit is contained in:
zhoubinjia committed 2026-07-13 20:03:33 +08:00
1 parent 557f584dec
commit 15b5c86a86
1 file changed
+5
@@ -5759,6 +5759,11 @@ class Camera2Controller(private val context: Context) {
try {
applyBaseCameraSettings(builder, isCapture = false)
val aeLockAvailable = getActiveOpenCameraCharacteristics()
?.get(CameraCharacteristics.CONTROL_AE_LOCK_AVAILABLE) == true
if (aeLockAvailable) {
builder.set(CaptureRequest.CONTROL_AE_LOCK, false)
}
builder.set(
CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER,