Fix activation issue with auto disabled sensors.
Auto disabled sensors get auto disabled after trigger.
An activation after this wasn't working because the
state was not being reset.
b/8609561
Change-Id: If72c9f27345e91671d7ad0a7a066f6dc3d255b78
diff --git a/services/sensorservice/SensorInterface.cpp b/services/sensorservice/SensorInterface.cpp
index 468aa61..cf0a11d 100644
--- a/services/sensorservice/SensorInterface.cpp
+++ b/services/sensorservice/SensorInterface.cpp
@@ -54,6 +54,10 @@
return mSensorDevice.setDelay(ident, handle, ns);
}
+status_t HardwareSensor::resetStateWithoutActuatingHardware(void *ident, int handle) {
+ return mSensorDevice.resetStateWithoutActuatingHardware(ident, handle);
+}
+
Sensor HardwareSensor::getSensor() const {
return mSensor;
}