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

Commit c3c06c4f authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by Android (Google) Code Review
Browse files

Merge "Camera: override external facing for API1 client" into nyc-dev

parents 1302f9dd 9b5a6e9a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -464,6 +464,12 @@ Status CameraService::getCameraInfo(int cameraId,
    if (rc.isOk()) {
        cameraInfo->facing = info.facing;
        cameraInfo->orientation = info.orientation;
        // CameraInfo is for android.hardware.Camera which does not
        // support external camera facing. The closest approximation would be
        // front camera.
        if (cameraInfo->orientation == CAMERA_FACING_EXTERNAL) {
            cameraInfo->orientation = CAMERA_FACING_FRONT;
        }
    }
    return rc;
}