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

Commit 5995f214 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents e4f1dbca 01972921
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -574,9 +574,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__);