Skip to content

Commit

Permalink
Remove problematic step at the beginning of runPrecaptureSequence()
Browse files Browse the repository at this point in the history
  • Loading branch information
gerken-tss committed Nov 17, 2022
1 parent bd8d725 commit de4111f
Showing 1 changed file with 0 additions and 12 deletions.
Expand Up @@ -560,18 +560,6 @@ public void takePicture(@NonNull final Result result) {
private void runPrecaptureSequence() {
Log.i(TAG, "runPrecaptureSequence");
try {
// First set precapture state to idle or else it can hang in STATE_WAITING_PRECAPTURE_START.
previewRequestBuilder.set(
CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER,
CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER_IDLE);
captureSession.capture(
previewRequestBuilder.build(), cameraCaptureCallback, backgroundHandler);

// Repeating request to refresh preview session.
refreshPreviewCaptureSession(
null,
(code, message) -> dartMessenger.error(flutterResult, "cameraAccess", message, null));

// Start precapture.
cameraCaptureCallback.setCameraState(CameraState.STATE_WAITING_PRECAPTURE_START);

Expand Down

0 comments on commit de4111f

Please sign in to comment.