From 25d08d7f7514648e373ca4b8f045f2a3f56e2d52 Mon Sep 17 00:00:00 2001 From: Peng Xu Date: Thu, 15 Sep 2016 10:55:00 -0700 Subject: [PATCH] TYPE_DYNAMIC_SENSOR_META type should be wake up sensor Bug: 31068976 Change-Id: I2e6320b1e1e34a8c22677be3e6e318c149e1bb26 --- core/java/android/hardware/SensorManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java index 04ee1e6d57d03..3ccac692be913 100644 --- a/core/java/android/hardware/SensorManager.java +++ b/core/java/android/hardware/SensorManager.java @@ -492,7 +492,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_WRIST_TILT_GESTURE) { + type == Sensor.TYPE_WRIST_TILT_GESTURE || type == Sensor.TYPE_DYNAMIC_SENSOR_META) { wakeUpSensor = true; }