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

Commit 799298f4 authored by Peng Xu's avatar Peng Xu Committed by android-build-merger
Browse files

Initialize native Sensor object correctly

am: 27cc5f96

Change-Id: I68624e6fd595dad494ed79d699ab6a2f51d60b55
parents a0dd8bce 27cc5f96
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :
        Sensor(*hwSensor, uuid_t(), halVersion) {
}

Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) {
Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) :
        Sensor("") {
    mName = hwSensor.name;
    mVendor = hwSensor.vendor;
    mVersion = hwSensor.version;