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

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

Merge "Camera: Save the HIDL instances regardless of device version"

parents 32efe595 f33ccfaf
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -692,6 +692,11 @@ HidlProviderInfo::HidlDeviceInfo3::HidlDeviceInfo3(

    mTorchStrengthLevel = 0;

    if (!kEnableLazyHal) {
        // Save HAL reference indefinitely
        mSavedInterface = interface;
    }

    queryPhysicalCameraIds();

    // Get physical camera characteristics if applicable
@@ -752,13 +757,6 @@ HidlProviderInfo::HidlDeviceInfo3::HidlDeviceInfo3(
            }
        }
    }

    if (!kEnableLazyHal) {
        // Save HAL reference indefinitely
        mSavedInterface = interface;
    }


}

status_t HidlProviderInfo::HidlDeviceInfo3::setTorchMode(bool enabled) {