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

Commit 4006ef1d 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

am: 896a1a42

* commit '896a1a42':
  Camera2: Ignore exception on double-completed capture sequences.

Change-Id: I2375878fba957134228ab0c45bf396e69c820320
parents 6eaa4871 896a1a42
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 {