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

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

Initialize native Sensor object correctly am: 27cc5f96 am: 16539f8e

am: 5c47c95b

Change-Id: I76a06f327c9a12448cf8c1712136d7690fffe705
parents 46f28c7b 5c47c95b
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;