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

Commit 4cfc33a8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "camera2 ndk: Fix vndk error return value for ACameraManager::OpenCamera()." into rvc-dev

parents 018c4174 911a13b2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -735,9 +735,8 @@ ACameraManager::openCamera(

    if (!serviceRet.isOk() || status != Status::NO_ERROR) {
        ALOGE("%s: connect camera device failed", __FUNCTION__);
        // TODO: Convert serviceRet to camera_status_t
        delete device;
        return ACAMERA_ERROR_UNKNOWN;
        return utils::convertFromHidl(status);
    }
    if (deviceRemote == nullptr) {
        ALOGE("%s: connect camera device failed! remote device is null", __FUNCTION__);