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

Commit caf3a9c1 authored by Ziv Hendel's avatar Ziv Hendel Committed by Igor Murashkin
Browse files

commandStartFaceDetectionL returned the wrong value when face detection is not...


commandStartFaceDetectionL returned the wrong value when face detection is not supported by the HAL.
This caused the JNI function to fail since it expected a BAD_VALUE response in that case.

Change-Id: I53107a3958d541c25930b81eda638d4b6a394254
Signed-off-by: default avatarIgor Murashkin <iam@google.com>
parent 96954c00
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1255,7 +1255,7 @@ status_t Camera2Client::commandStartFaceDetectionL(int /*type*/) {
            ANDROID_STATISTICS_FACE_DETECT_MODE_OFF) {
        ALOGE("%s: Camera %d: Face detection not supported",
                __FUNCTION__, mCameraId);
        return INVALID_OPERATION;
        return BAD_VALUE;
    }
    if (l.mParameters.enableFaceDetect) return OK;