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

Commit 657d30e7 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android (Google) Code Review
Browse files

Merge "Camera2: Allow captures right after abort" into lmp-dev

parents fab395e9 ee7ea853
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -143,7 +143,6 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession {
        }

        checkNotClosed();
        checkLegalToCapture();

        handler = checkHandler(handler, callback);

@@ -166,7 +165,6 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession {
        }

        checkNotClosed();
        checkLegalToCapture();

        handler = checkHandler(handler, callback);

@@ -188,7 +186,6 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession {
        }

        checkNotClosed();
        checkLegalToCapture();

        handler = checkHandler(handler, callback);

@@ -211,7 +208,6 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession {
        }

        checkNotClosed();
        checkLegalToCapture();

        handler = checkHandler(handler, callback);

@@ -542,13 +538,6 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession {
        }
    }

    private void checkLegalToCapture() {
        if (mAborting) {
            throw new IllegalStateException(
                    "Session is aborting captures; new captures are not permitted");
        }
    }

    private void checkNotClosed() {
        if (mClosed) {
            throw new IllegalStateException(