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

Commit ee1c028c authored by yanzong chen's avatar yanzong chen Committed by daren.liao
Browse files

Fix CameraHidlTest

[Description]
Add ASOP to Fix CameraHidlTest callback fail

Test:
1,build pass
2,Verified pass

Bug: 193611228

Change-Id: Icdf1cac6e67f866f5aedfaeab4095fa2efc57959
parent 5e4453f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -450,7 +450,9 @@ Return<Status> LegacyCameraProviderImpl_2_4::setCallback(
        const sp<ICameraProviderCallback>& callback) {
    Mutex::Autolock _l(mCbLock);
    mCallbacks = callback;

    if (mCallbacks == nullptr) {
        return Status::OK;
    }
    // Add and report all presenting external cameras.
    for (auto const& statusPair : mCameraStatusMap) {
        int id = std::stoi(statusPair.first);