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

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

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

parents 45214bb8 6ba3f5e5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -190,8 +190,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;
}