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

Commit 88b4cc81 authored by Zhijun He's avatar Zhijun He Committed by Android (Google) Code Review
Browse files

Merge "Camera2Client: log an error when autoFocus is called in wrong state" into lmp-dev

parents 5110d6a0 f79f8ca0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1217,6 +1217,8 @@ status_t Camera2Client::autoFocus() {
    {
        SharedParameters::Lock l(mParameters);
        if (l.mParameters.state < Parameters::PREVIEW) {
            ALOGE("%s: Camera %d: Call autoFocus when preview is inactive (state = %d).",
                    __FUNCTION__, mCameraId, l.mParameters.state);
            return INVALID_OPERATION;
        }