Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 896a1a42 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by android-build-merger
Browse files

Merge "Camera2: Ignore exception on double-completed capture sequences." into nyc-dev

am: 5856779c

* commit '5856779c':
  Camera2: Ignore exception on double-completed capture sequences.

Change-Id: Ie22c0bbdc83cba529bf521ebaef3349a5e22b976
parents e93ff333 5856779c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -628,7 +628,12 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession
     * close the camera further by unconfiguring and then firing {@code onClosed}.</p>
     */
    private void finishPendingSequence(int sequenceId) {
        try {
            mSequenceDrainer.taskFinished(sequenceId);
        } catch (IllegalStateException e) {
            // Workaround for b/27870771
            Log.w(TAG, e.getMessage());
        }
    }

    private class SequenceDrainListener implements TaskDrainer.DrainListener {