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

Commit 083de0c3 authored by Yuriy Romanenko's avatar Yuriy Romanenko
Browse files

ExternalCameraDeviceSession: Fix request initialization

This code was exiting because of unsupported RequestTemplate::*
enum values that are now just ignored.

Change-Id: I37f79cbbfe99664ec173458721d71947f0d002ff
parent e210c3cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1820,8 +1820,8 @@ status_t ExternalCameraDeviceSession::initDefaultRequests() {
                intent = ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT;
                break;
            default:
                ALOGE("%s: unknown template type %d", __FUNCTION__, type);
                return BAD_VALUE;
                ALOGV("%s: unsupported RequestTemplate type %d", __FUNCTION__, type);
                continue;
        }
        UPDATE(mdCopy, ANDROID_CONTROL_CAPTURE_INTENT, &intent, 1);