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

Commit fb5539fa authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Camera: Avoid possible instability when adding new devices" into sc-v2-dev

parents 799c8d06 3486ab7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1631,7 +1631,6 @@ status_t CameraProviderManager::ProviderInfo::addDevice(const std::string& name,
        case 3:
            deviceInfo = initializeDeviceInfo<DeviceInfo3>(name, mProviderTagid,
                    id, minor);
            deviceInfo->notifyDeviceStateChange(mDeviceState);
            break;
        default:
            ALOGE("%s: Device %s: Unknown HIDL device HAL major version %d:", __FUNCTION__,
@@ -1639,6 +1638,7 @@ status_t CameraProviderManager::ProviderInfo::addDevice(const std::string& name,
            return BAD_VALUE;
    }
    if (deviceInfo == nullptr) return BAD_VALUE;
    deviceInfo->notifyDeviceStateChange(mDeviceState);
    deviceInfo->mStatus = initialStatus;
    bool isAPI1Compatible = deviceInfo->isAPI1Compatible();