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

Commit a7765759 authored by Ivan Gorinov's avatar Ivan Gorinov
Browse files

Sensors: Set the wakeup LOW_LATENCY_OFFBODY_DETECT as default

This sensor type is included in the wakeup sensor list returned by
the native sensor API, but missing in the list returned by Java API.

Test: Sensor.isWakeUpSensor()
Bug: 187181510
Change-Id: I8de98755af7c85a7a4c907c83d69c254ea8f8d7b
parent 24120d98
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -497,6 +497,7 @@ public abstract class SensorManager {
        if (type == Sensor.TYPE_PROXIMITY || type == Sensor.TYPE_SIGNIFICANT_MOTION
                || type == Sensor.TYPE_TILT_DETECTOR || type == Sensor.TYPE_WAKE_GESTURE
                || type == Sensor.TYPE_GLANCE_GESTURE || type == Sensor.TYPE_PICK_UP_GESTURE
                || type == Sensor.TYPE_LOW_LATENCY_OFFBODY_DETECT
                || type == Sensor.TYPE_WRIST_TILT_GESTURE
                || type == Sensor.TYPE_DYNAMIC_SENSOR_META || type == Sensor.TYPE_HINGE_ANGLE) {
            wakeUpSensor = true;