diff options
author | Anthony Stange <stange@google.com> | 2020-01-16 15:02:48 -0500 |
---|---|---|
committer | Anthony Stange <stange@google.com> | 2020-01-22 14:41:09 -0500 |
commit | fdb1fc8fcb8c9cc780f35f7af720ccb267afef1f (patch) | |
tree | d73820060ccdb8409cfbab778ddaebc20768aa92 /libs/sensor/SensorManager.cpp | |
parent | 31ba2a9632596b7e1de701722e76e24908b2bc0a (diff) |
Add hinge angle sensor type to sensor NDK
Bug: 144139857
Test: N/A
Change-Id: Id809a8f65b31143759978702d18e6ac944d62ac3
Diffstat (limited to 'libs/sensor/SensorManager.cpp')
-rw-r--r-- | libs/sensor/SensorManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sensor/SensorManager.cpp b/libs/sensor/SensorManager.cpp index bf8b9f73fe..a4a5d135c0 100644 --- a/libs/sensor/SensorManager.cpp +++ b/libs/sensor/SensorManager.cpp @@ -209,7 +209,7 @@ Sensor const* SensorManager::getDefaultSensor(int type) type == SENSOR_TYPE_TILT_DETECTOR || type == SENSOR_TYPE_WAKE_GESTURE || type == SENSOR_TYPE_GLANCE_GESTURE || type == SENSOR_TYPE_PICK_UP_GESTURE || type == SENSOR_TYPE_WRIST_TILT_GESTURE || - type == SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT) { + type == SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT || type == SENSOR_TYPE_HINGE_ANGLE) { wakeUpSensor = true; } // For now we just return the first sensor of that type we find. |