diff --git a/app/src/main/cpp/camera2/ndkcamera.cpp b/app/src/main/cpp/camera2/ndkcamera.cpp index 14a55359..8047fa8c 100644 --- a/app/src/main/cpp/camera2/ndkcamera.cpp +++ b/app/src/main/cpp/camera2/ndkcamera.cpp @@ -1261,6 +1261,10 @@ void NdkCamera::onCaptureCompleted(ACameraCaptureSession* session, ACaptureReque numberOfPrecaptures = 0; } } + else + { + numberOfPrecaptures = 0; + } if (mResult.aeState == ACAMERA_CONTROL_AE_STATE_PRECAPTURE) { uint8_t aePrecatureTrigger = ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_START;