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

Commit 3c6714db authored by Rucha Katakwar's avatar Rucha Katakwar
Browse files

Camera: Initialize torch strength variables.

Initialize the torch strength variables in DeviceInfo.Currently they are
initialized in its inner class DeviceInfo3.

bug: 200174275

Test: Flashlight CTS on cf.
Change-Id: I8aaecafd0bef9f2f97b5c8894e4de3374e1d3c61
parent b248b8b3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -552,8 +552,10 @@ private:
                    mName(name), mId(id), mVersion(version), mProviderTagid(tagId),
                    mIsLogicalCamera(false), mResourceCost(resourceCost),
                    mStatus(hardware::camera::common::V1_0::CameraDeviceStatus::PRESENT),
                    mParentProvider(parentProvider), mHasFlashUnit(false),
                    mSupportNativeZoomRatio(false), mPublicCameraIds(publicCameraIds) {}
                    mParentProvider(parentProvider), mTorchStrengthLevel(0),
                    mTorchMaximumStrengthLevel(0), mTorchDefaultStrengthLevel(0),
                    mHasFlashUnit(false), mSupportNativeZoomRatio(false),
                    mPublicCameraIds(publicCameraIds) {}
            virtual ~DeviceInfo();
        protected:
            bool mHasFlashUnit; // const after constructor