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

Commit 27c20f48 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "cameraserver: Fix logic to skip callbacks for non HAL3 devices for vendor listeners."

parents ed7c7e6f edfb2606
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -3309,8 +3309,15 @@ void CameraService::updateStatus(StatusInternal status, const String8& cameraId,
            Mutex::Autolock lock(mStatusListenerLock);

            for (auto& listener : mListenerList) {
                if (!listener.first &&  (isHidden || !supportsHAL3)) {
                    ALOGV("Skipping camera discovery callback for system-only / HAL1 camera %s",
                bool isVendorListener = listener.first;
                if (isVendorListener && !supportsHAL3) {
                    ALOGV("Skipping vendor listener camera discovery callback for  HAL1 camera %s",
                            cameraId.c_str());
                    continue;
                }

                if (!isVendorListener && isHidden) {
                    ALOGV("Skipping camera discovery callback for system-only camera %s",
                          cameraId.c_str());
                    continue;
                }