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

Commit 0336d364 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: allow non-supported template

Bug: 19395059
Change-Id: I42bbd99fef6055173062266c1a490311105c6814
parent cc0cb8a1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1054,9 +1054,9 @@ status_t Camera3Device::createDefaultRequest(int templateId,
        mHal3Device, templateId);
    ATRACE_END();
    if (rawRequest == NULL) {
        SET_ERR_L("HAL is unable to construct default settings for template %d",
                templateId);
        return DEAD_OBJECT;
        ALOGI("%s: template %d is not supported on this camera device",
              __FUNCTION__, templateId);
        return BAD_VALUE;
    }
    *request = rawRequest;
    mRequestTemplateCache[templateId] = rawRequest;