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

Commit 61e17b63 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Pass initial device state when adding new camera devices

Once added new camera devices must receive the current device state
so they can adjust accordingly.

Bug: 202567080
Test: Manual using camera application,
Camera CTS

Change-Id: I8a4ed4b134ba412b2a268cb45141d72626b89ebb
parent 5368ebf6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1631,6 +1631,7 @@ status_t CameraProviderManager::ProviderInfo::addDevice(const std::string& name,
        case 3:
        case 3:
            deviceInfo = initializeDeviceInfo<DeviceInfo3>(name, mProviderTagid,
            deviceInfo = initializeDeviceInfo<DeviceInfo3>(name, mProviderTagid,
                    id, minor);
                    id, minor);
            deviceInfo->notifyDeviceStateChange(mDeviceState);
            break;
            break;
        default:
        default:
            ALOGE("%s: Device %s: Unknown HIDL device HAL major version %d:", __FUNCTION__,
            ALOGE("%s: Device %s: Unknown HIDL device HAL major version %d:", __FUNCTION__,