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

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

Merge "Camera: Do not update state at HAL starts up if state already exists"

parents 9a484289 e1aedc5a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -181,8 +181,10 @@ status_t CameraService::enumerateProviders() {

    for (auto& cameraId : deviceIds) {
        String8 id8 = String8(cameraId.c_str());
        if (getCameraState(id8) == nullptr) {
            onDeviceStatusChanged(id8, CameraDeviceStatus::PRESENT);
        }
    }

    return OK;
}