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

Commit ea2b73b6 authored by Nick Vaccaro's avatar Nick Vaccaro Committed by android-build-merger
Browse files

Sensors: Add WRIST_TILT_GESTURE as wake sensor am: 5e7f79bf

am: 0eabfd2d

Change-Id: I7f18f764215f341756ce6c495cc24481d2d10df7
parents a22f0648 0eabfd2d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -194,7 +194,8 @@ Sensor const* SensorManager::getDefaultSensor(int type)
        // a non_wake-up version.
        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_GLANCE_GESTURE || type == SENSOR_TYPE_PICK_UP_GESTURE ||
            type == SENSOR_TYPE_WRIST_TILT_GESTURE) {
            wakeUpSensor = true;
        }
        // For now we just return the first sensor of that type we find.